summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2003-02-04 03:33:25 +0000
committeryar <yar@FreeBSD.org>2003-02-04 03:33:25 +0000
commitb1a2e9acb4bfd5ecd9e91ca327fc940f980b8a07 (patch)
treeb80b05b84243496abcb779fb4340724a7aa132d8 /libexec
parentcbd85a777d713a4108df2835eb5a1ef0027f0433 (diff)
downloadFreeBSD-src-b1a2e9acb4bfd5ecd9e91ca327fc940f980b8a07.zip
FreeBSD-src-b1a2e9acb4bfd5ecd9e91ca327fc940f980b8a07.tar.gz
RFC 959 doesn't list reply code 550 as a valid responce to STOR/STOU,
so return reply code 553 to indicate a error from open(2) for consistency, as long as the code is used in the rest of the STOR/STOU handler.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 477102a..83e2e97 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -2920,7 +2920,7 @@ guniquefd(char *local, char **name)
return (fd);
}
if (errno != EEXIST) {
- perror_reply(550, count ? new : local);
+ perror_reply(553, count ? new : local);
return (-1);
}
}
OpenPOWER on IntegriCloud