git: 9front

Download patch

ref: 36b3055655b5107bf962e41ab8aeb7973f974cc5
parent: 20cae304f79e7421e61078b6cb5b870b8adf9419
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");
--