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

[DeleGate-En] Re: NcFTP's ls is broken in 9.2.3-pre2 and 9.2.2
20 Jun 2006 18:26:58 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project

Hi,

In message <_A3312@delegate-en.ML_> on 06/20/06(22:27:58)
you Steffen Kaiser <p44eqbdyi-mxhgu433j33w.ml@delegate.org> wrote:
 |in the step from 9.2.2-pre3e to 9.2.2 NcFTP ls broke:
...
 |ncftp /pub > dir
 |d------r-x         4096   Mar  8  2005   Ad-Aware
 |d------r-x         4096   Feb 19 06:47   WinCMD
 |d------r-x         4096   Jun 18 00:00   cdrwin
 |d------r-x         4096   Jun 20 06:39   cygnus
...
 |dr-xr-sr-x    3 root     pcadmin      4096 Mar  8  2005 Ad-Aware/
 |dr-xr-sr-x    4 root     pcadmin      4096 Feb 19 06:47 WinCMD/
 |lrwxrwxrwx    1 root     root           22 Jan 13  2005 activestate -> 
...
 |You see: the symlinks are missing and the permissions are wrong.
...
 |But difference is NcFTP's useage of MLSD newly introduced in v9.2.2 (per 

Hmm... I should have used stat() instead of lstat() for MLSD.
It'll fixed as the enclosed patch.
If you still have a problem, specify as the following to disable
MLSx for a while:

  FTPCONF=nomlsx

(Also "Unique=" should be implemented to support symbolic link
more accurately ...)

Cheers,
Yutaka
--
  D G   Yutaka Sato <pfqcabdyi-mxhgu433j33w.ml@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

*** ../arc/delegate9.2.3-pre2/src/ftp.c	Sun Jun 18 00:06:23 2006
--- src/ftp.c	Wed Jun 21 03:16:23 2006
***************
*** 1292,1299 ****
--- 1292,1300 ----
  		if( comeq(com,"MLST") || comeq(com,"MLSD") ){
  			CStr(fmt,1024);
  			sprintf(fmt,"%s%s",comeq(com,"MLST")?" ":"",
  				DFLT_MLS_FMT);
+ 			strcat(xfopt,"L");
  			if( comeq(com,"MLST") ){
  				strcat(xfopt,"d");
  			}
  			ls_unix(fp,xfopt,AVStr(fmt),path,NULL);

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