proftpd / proftpd

ProFTPD source code
http://www.proftpd.org
GNU General Public License v2.0
521 stars 199 forks source link

nlist not listing the files with ./* #1475

Open chintaab opened 2 years ago

chintaab commented 2 years ago
$ rpm -qa | grep proftp
proftpd-1.3.5e-11.el7.x86_64
[test@ip-172-31-43-249 ~]$ ls
file1  file2  file3
ftp> ls
227 Entering Passive Mode (127,0,0,1,174,63).
150 Opening ASCII mode data connection for file list
-rw-rw-r--   1 test     test            0 Jun 27 06:21 file1
-rw-rw-r--   1 test     test            0 Jun 27 06:21 file2
-rw-r--r--   1 root     root            0 Jun 27 07:02 file3
226 Transfer complete

ftp> nlist *
227 Entering Passive Mode (127,0,0,1,160,213).
150 Opening ASCII mode data connection for file list
file3
file2
file1
226 Transfer complete

ftp> nlist ./*
227 Entering Passive Mode (127,0,0,1,158,99).
150 Opening ASCII mode data connection for file list
226 Transfer complete

This was working with older version like 1.3.3g on RHEL 6.4.

Because this a legacy application functionality broken.

Any suggestions ?

chintaab commented 2 years ago

Debug output of the same.

2022-06-27 09:06:12,719 [1941] <command:7>: dispatching LOG_CMD command 'PASV' to mod_log.c
2022-06-27 09:06:12,719 [1941] <response:9>: clearing response lists before dispatching command 'NLST'
2022-06-27 09:06:12,719 [1941] <command:7>: dispatching PRE_CMD command 'NLST ./*' to mod_tls.c
2022-06-27 09:06:12,719 [1941] <command:7>: dispatching PRE_CMD command 'NLST ./*' to mod_core.c
2022-06-27 09:06:12,719 [1941] <command:7>: dispatching PRE_CMD command 'NLST ./*' to mod_core.c
2022-06-27 09:06:12,719 [1941] <command:7>: dispatching CMD command 'NLST ./*' to mod_ls.c
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot stat() for path './*'
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot opendir() for path '.'
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot readdir()
2022-06-27 09:06:12,719 [1941] <fsio:8>: using vroot closedir()
2022-06-27 09:06:12,719 [1941] <data:8>: allocated data transfer buffer of 20480 bytes
2022-06-27 09:06:12,719 [1941] <response:1>: 150 Opening ASCII mode data connection for file list
2022-06-27 09:06:12,720 [1941] <netio:8>: received data for reading on fd 20, ignoring
2022-06-27 09:06:12,720 [1941] <command:7>: dispatching LOG_CMD command 'NLST ./*' to mod_log.c
2022-06-27 09:06:12,720 [1941] <command:7>: dispatching LOG_CMD command 'NLST ./*' to mod_ls.c
Castaglia commented 2 years ago

Does this work as expected, if you (temporarily) disable the mod_vroot module?

Castaglia commented 2 years ago

I believe this might be the same issue as https://github.com/proftpd/proftpd/issues/1325. Would you be able to use a newer ProFTPD version, such as 1.3.8rc3?