ASF Bugzilla – Attachment 27799 Details for
Bug 52043
Directories ".", "..", and "/" do not work correctly with "ls" command
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file to address shortcomings in mod_ftp "ls" command handling
mod_ftp-patch.diff (text/plain), 454 bytes, created by
Philip Pickett
on 2011-10-17 18:24:05 UTC
(
hide
)
Description:
Patch file to address shortcomings in mod_ftp "ls" command handling
Filename:
MIME Type:
Creator:
Philip Pickett
Created:
2011-10-17 18:24:05 UTC
Size:
454 bytes
patch
obsolete
>Index: modules/ftp/ftp_commands.c >=================================================================== >--- modules/ftp/ftp_commands.c (revision 1183770) >+++ modules/ftp/ftp_commands.c (working copy) >@@ -755,7 +755,7 @@ > > ap_destroy_sub_req(rr); > >- if (arg[0] == '\0') { >+ if (arg[0] == '\0' || !strcmp(arg, "/") || !strcmp(arg, "..") || !strcmp(arg, ".")) { > pattern = apr_pstrcat(r->pool, r->filename, "/*", NULL); > } > else {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52043
: 27799