Conform to RFC 959, Appendix II, when replying
to a successful MKD command. MFC after: 1 week
This commit is contained in:
parent
08c0f3d917
commit
2b7489878b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user