diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index 57aabfbb2..ca8e95630 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -2094,9 +2094,9 @@ list_file(const char *file) pdata = -1; } else { #ifdef HAVE_LS_A - char *cmd = "/bin/ls -lA"; + char *cmd = "/bin/ls -lA %s"; #else - char *cmd = "/bin/ls -la"; + char *cmd = "/bin/ls -la %s"; #endif retrieve(cmd, file); }