diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index ad7b81b16..78200a59d 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -2092,7 +2092,7 @@ static char *onefile[] = { }; void -list_file(const char *file) +list_file(char *file) { if(use_builtin_ls) { FILE *dout; @@ -2107,9 +2107,9 @@ list_file(const char *file) pdata = -1; } else { #ifdef HAVE_LS_A - char *cmd = "/bin/ls -lA %s"; + const char *cmd = "/bin/ls -lA %s"; #else - char *cmd = "/bin/ls -la %s"; + const char *cmd = "/bin/ls -la %s"; #endif retrieve(cmd, file); }