Fix perror_reply() vs. reply() usage.

This commit is contained in:
Yaroslav Tykhiy 2004-11-18 11:27:31 +00:00
parent 4a3e5acd8d
commit 82c03024c2
2 changed files with 3 additions and 3 deletions

View File

@ -731,8 +731,7 @@ cmd
if ($2 && $4 != NULL) {
struct stat stbuf;
if (stat($4, &stbuf) < 0)
reply(550, "%s: %s",
$4, strerror(errno));
perror_reply(550, $4);
else if (!S_ISREG(stbuf.st_mode)) {
reply(550, "%s: not a plain file.", $4);
} else {

View File

@ -1962,7 +1962,8 @@ dataconn(char *name, off_t size, char *mode)
}
} while (retry <= swaitmax);
if (conerrno != 0) {
perror_reply(425, "Can't build data connection");
reply(425, "Can't build data connection: %s.",
strerror(conerrno));
return (NULL);
}
reply(150, "Opening %s mode data connection for '%s'%s.",