ref: c9d2ce7b1c7156501793e4b7aa41862b1ade561a
parent: 731aeeedb377c86eea8b0263b72190924fd90887
author: cinap_lenrek <cinap_lenrek@flatbox.9hal>
date: Fri Mar 9 01:07:20 EST 2012
ftpd: import changes from sources
--- a/sys/src/cmd/ip/ftpd.c
+++ b/sys/src/cmd/ip/ftpd.c
@@ -1152,6 +1152,8 @@
int nf, r;
Dir *d;
+ if(arg == 0)
+ return reply("501 bad site command");nf = tokenize(arg, f, nelem(f));
if(nf != 3 || cistrcmp(f[0], "chmod") != 0)
return reply("501 bad site command");--
⑨