こちらに書き込んで良いものか、迷ったんですが・・・
ftpd (inetutils-1.3.2-17) / ftpd.c の関数 makedir()
# void
# makedir(name)
# char *name;
# {
#
# LOGCMD("mkdir", name);
# if (mkdir(name, 0777) < 0)
# perror_reply(550, name);
# else if (name[0] == '/')
# reply (257, "\"%s\" new directory created."); ← ここ!
# else {
# /* We have to figure out what our current directory is
# so that we can give an absolute name in the reply.*/
# char *cwd = getcwd (0, 0);
# if (cwd) {
# if (cwd[1] == '\0')
# cwd[0] = '\0';
# reply (257, "\"%s/%s\" new directory reated.", cwd, name);
# free (cwd);
# } else
# reply (257, "(unknown absolute name) new directory created.");
# }
# }
内の 5 ステップ目 (ftpd.c 1427 ステップ目)
# reply (257, "\"%s\" new directory created.");
は、
# reply (257, "\"%s\" new directory created.", name);
の、誤りだと思うのですが、いかがでしょうか?
|