On 12/03/01(07:12) you "Jens-E. Hansen" <email@example.com> wrote
|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
This MOUNT does not work as you expected if you logged in as an
non-anonymous user because
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 :)
@ @ Yutaka Sato <firstname.lastname@example.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 ----
if( ident->i_user == 0 )
+ if( PFS
+ && hostcmp(PFS->fs_host,ident->i_Host) == 0
+ && PFS->fs_port == ident->i_Port
+ && PFS->fs_USER != 0