aboutsummaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2002-07-29 15:54:27 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2002-07-29 15:54:27 +0000
commit2b7489878bc589718340d1c0bcc6f7534416ee83 (patch)
tree5963f825296d98ffbc1cccfac2dc083595e20715 /libexec/ftpd
parent08c0f3d91749f3289eba85544a99e2483b6e4f9d (diff)
Notes
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 8a9d016ca207f..d016d2e552e9a 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -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