Fix perror_reply() vs. reply() usage.
This commit is contained in:
parent
4a3e5acd8d
commit
82c03024c2
@ -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 {
|
||||
|
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user