Article delegate-en/3248 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3247@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: FTP MOUNT lacking the root (Re: File size issue with FTP cache)
25 May 2006 11:10:26 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


In message <_A3247@delegate-en.ML_> on 05/25/06(17:30:16) I wrote:
 |Maybe I'm reminded the reason of the problem.  It is caused because there
 |is no MOUNT rule about the virtual root directory and it will be solved by
 |adding a MOUNT rule for the virutal root directory, as this for example:
 |
 |  MOUNT="/* /tmp"

I think FTP MOUNT without the virtual root definition should work
by default, without a dummy MOUNT like above.  The enclosed patch
can be a possible solution.

 |(I'll write the reason later ...)

Cheers,
Yutaka
--
  D G   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


*** ../delegate9.2.2-pre3c/src/ftp.c	Thu May 25 13:24:23 2006
--- src/ftp.c	Thu May 25 20:02:10 2006
***************
*** 2467,2473 ****
--- 2467,2476 ----
  		if( strcasecmp(com,"CWD")==0 ){
  			if( rewrite_CWD(FS,AVStr(req),AVStr(arg),tc) ){
  			}else
+ 			{
+ 				chdir_cwd(AVStr(FS->fs_CWD),arg,1);
   fprintf(tc,"250 CWD command successful.\r\n");
+ 			}
  			islocal = FS->fs_islocal;
  		}else
  		if( strcasecmp(com,"PWD") == 0 ){

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V