ftpd: import changes from sources

This commit is contained in:
cinap_lenrek 2012-03-09 06:07:20 +01:00
parent 731aeeedb3
commit c9d2ce7b1c

View file

@ -1152,6 +1152,8 @@ sitecmd(char *arg)
int nf, r; int nf, r;
Dir *d; Dir *d;
if(arg == 0)
return reply("501 bad site command");
nf = tokenize(arg, f, nelem(f)); nf = tokenize(arg, f, nelem(f));
if(nf != 3 || cistrcmp(f[0], "chmod") != 0) if(nf != 3 || cistrcmp(f[0], "chmod") != 0)
return reply("501 bad site command"); return reply("501 bad site command");