Conform to RFC 959, Appendix II, when replying

to a successful MKD command.

MFC after:	1 week
This commit is contained in:
Yaroslav Tykhiy 2002-07-29 15:54:27 +00:00
parent 08c0f3d917
commit 2b7489878b

View File

@ -2302,14 +2302,19 @@ cwd(char *path)
void
makedir(char *name)
{
char *s;
LOGCMD("mkdir", name);
if (guest && noguestmkd)
reply(550, "%s: permission denied", name);
else if (mkdir(name, 0777) < 0)
perror_reply(550, name);
else
reply(257, "MKD command successful.");
else {
if ((s = doublequote(name)) == NULL)
fatalerror("Ran out of memory.");
reply(257, "\"%s\" directory created.", s);
free(s);
}
}
void