Article delegate-en/1443 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:<_A1442@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: where do i miss the point?
03 Dec 2001 09:23:59 GMT feedback@delegate.org (Yutaka Sato)


Hi,

On 12/03/01(07:12) you "Jens-E. Hansen" <puicqbdyi-5bnwhwdzselr.ml@ml.delegate.org> wrote
in <_A1442@delegate-en.ML_>
 |I try to map /dir1/* to ftp://host/dir0/dir1/*
 |Logging in and cwd to /dir1 brings me to ftp://host/dir0/dir1 
 |Calling ls the first time I get the listing from ftp://host/dir0/dir .
 |Calling ls the seconf time I get the listing from ftp://host/ .
 |
 |What am I missing?

You should be right, except for the typo in the following line for "-P21" :p

 |-P=21
 |SERVER=ftp://host
 |MOUNT="/dir1/* ftp://host/dir0/dir1/*"

This MOUNT does not work as you expected if you logged in as an
non-anonymous user because
 ftp://host/dir0/dir1/*
means
 ftp://anonymous@host/dir0/dir1/*

So the highlight of this problem seems on how to interpret the
FTP URL, especially on the default user name on the FTP server.
The current specification of FTP-DeleGate can be trouble making
and the implementation seems inconsistent.
I would modify it so that the default username on MOUNT for the
currently connected server is derived from the current user name
for the server.  The enclosed patch will make the modification and
with it you will be able to do as you expected with the above
parameters (correcting -P=21 to -P21 :)

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan

*** ../771/src/ftp.c	Fri Nov 16 04:53:05 2001
--- ftp.c	Mon Dec  3 18:09:58 2001
***************
*** 786,792 ****
--- 786,801 ----
  {
  	decomp_siteX("ftp",site,ident);
  	if( ident->i_user[0] == 0 )
+ 	{
+ 		if( PFS
+ 		 && hostcmp(PFS->fs_host,ident->i_Host) == 0
+ 		 && PFS->fs_port == ident->i_Port
+ 		 && PFS->fs_USER[0] != 0
+ 		){
+ 			wordScan(PFS->fs_USER,ident->i_user);
+ 		}else
  		strcpy(ident->i_user,"anonymous");
+ 	}
  }
  static swRemote(FS,com,arg,xserv,remp)
  	FtpStat *FS;

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