diff options
author | yar <yar@FreeBSD.org> | 2004-11-18 11:27:31 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2004-11-18 11:27:31 +0000 |
commit | a6025b1cf112acb2351e4036d4ef3c75f6df07f3 (patch) | |
tree | 220b810ef980265ca219f797c0af15d79813e235 /libexec/ftpd/ftpcmd.y | |
parent | 3851ed3f4f751a27179023592a684af66b6ffc9f (diff) | |
download | FreeBSD-src-a6025b1cf112acb2351e4036d4ef3c75f6df07f3.zip FreeBSD-src-a6025b1cf112acb2351e4036d4ef3c75f6df07f3.tar.gz |
Fix perror_reply() vs. reply() usage.
Diffstat (limited to 'libexec/ftpd/ftpcmd.y')
-rw-r--r-- | libexec/ftpd/ftpcmd.y | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index 05086e3..3b0f840 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -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 { |