diff options
author | cinap_lenrek <cinap_lenrek@flatbox.9hal> | 2012-03-09 06:07:20 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@flatbox.9hal> | 2012-03-09 06:07:20 +0100 |
commit | c9d2ce7b1c7156501793e4b7aa41862b1ade561a (patch) | |
tree | 5f8c137897b3b972179eb40ad8aa217fe29c8559 | |
parent | 731aeeedb377c86eea8b0263b72190924fd90887 (diff) |
ftpd: import changes from sources
-rw-r--r-- | sys/src/cmd/ip/ftpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/ip/ftpd.c b/sys/src/cmd/ip/ftpd.c index 18c32646b..582e0a918 100644 --- a/sys/src/cmd/ip/ftpd.c +++ b/sys/src/cmd/ip/ftpd.c @@ -1152,6 +1152,8 @@ sitecmd(char *arg) 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"); |