https://issues.apache.org/bugzilla/show_bug.cgi?id=52043
Bug #: 52043
Summary: Directories ".", "..", and "/" do not work correctly
with "ls" command
Product: Apache httpd-2
Version: 2.2.21
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: mod_ftp
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 27799
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27799
Patch file to address shortcomings in mod_ftp "ls" command handling
The FTP client commands "ls .", "ls ..", and "ls /" do not work in a way
consistent with the unix shell commands.
>From the top-level FTP directory, a "550" status "No such file or directory" is
returned for each of these. From a subdirectory one-level deep on the FTP
server, the "ls ." shows the contents of the current directory while "ls .."
and "ls /" still return the 550 status. From a subdirectory two or more levels
deep, "ls ." and "ls .." work but "ls /" returns a 550.
With the attached patch incorporated and built, the commands "ls .", "ls ..",
"ls /", as well as "ls ./<someDirectory>", "ls ../<someDirectory>", "ls
/<someDirectory>", and ls <someDirectory> work in a way consistent with the
linux/unix shell "ls" command for the testing I've done.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]