Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108432325
D45291.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D45291.id.diff
View Options
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -451,12 +451,12 @@
| LIST check_login CRLF
{
if ($2)
- retrieve(_PATH_LS " -lgA", "");
+ retrieve(_PATH_LS " -lA", "");
}
| LIST check_login SP pathstring CRLF
{
if ($2)
- retrieve(_PATH_LS " -lgA %s", $4);
+ retrieve(_PATH_LS " -lA %s", $4);
free($4);
}
| STAT check_login SP pathname CRLF
diff --git a/libexec/ftpd/ftpd.8 b/libexec/ftpd/ftpd.8
--- a/libexec/ftpd/ftpd.8
+++ b/libexec/ftpd/ftpd.8
@@ -276,7 +276,7 @@
.It EPSV Ta "prepare for server-to-server transfer, multiprotocol"
.It FEAT Ta "give information on extended features of server"
.It HELP Ta "give help information"
-.It LIST Ta "give list files in a directory" Pq Dq Li "ls -lgA"
+.It LIST Ta "give list files in a directory" Pq Dq Li "ls -lA"
.It LPRT Ta "specify data connection port, multiprotocol"
.It LPSV Ta "prepare for server-to-server transfer, multiprotocol"
.It MDTM Ta "show last modification time of file"
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -2321,7 +2321,7 @@
struct stat st;
code = lstat(filename, &st) == 0 && S_ISDIR(st.st_mode) ? 212 : 213;
- (void)snprintf(line, sizeof(line), _PATH_LS " -lgA %s", filename);
+ (void)snprintf(line, sizeof(line), _PATH_LS " -lA %s", filename);
fin = ftpd_popen(line, "r");
if (fin == NULL) {
perror_reply(551, filename);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 5:40 PM (16 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16156891
Default Alt Text
D45291.id.diff (1 KB)
Attached To
Mode
D45291: ftpd: stop using -g flag for /bin/ls
Attached
Detach File
Event Timeline
Log In to Comment