summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/ftpd.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-11-18 00:14:09 +0000
committeryar <yar@FreeBSD.org>2004-11-18 00:14:09 +0000
commit28f076df826eec909ee0434b993c39a3ab0d4281 (patch)
treeebad486eaf8ef35b0319d6425527158f9cc13598 /libexec/ftpd/ftpd.c
parent1158e3020863f5d18fafcc59f74f26d725849f65 (diff)
downloadFreeBSD-src-28f076df826eec909ee0434b993c39a3ab0d4281.zip
FreeBSD-src-28f076df826eec909ee0434b993c39a3ab0d4281.tar.gz
getcwd() won't leave a error string in the buffer, unlike getwd().
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-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 106b065..3b37d9a 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -2554,7 +2554,7 @@ pwd(void)
char *s, path[MAXPATHLEN + 1];
if (getcwd(path, sizeof(path)) == NULL)
- reply(550, "%s.", path);
+ perror_reply(550, "Get current directory");
else {
if ((s = doublequote(path)) == NULL)
fatalerror("Ran out of memory.");
OpenPOWER on IntegriCloud