diff options
author | yar <yar@FreeBSD.org> | 2004-11-18 00:14:09 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2004-11-18 00:14:09 +0000 |
commit | 28f076df826eec909ee0434b993c39a3ab0d4281 (patch) | |
tree | ebad486eaf8ef35b0319d6425527158f9cc13598 | |
parent | 1158e3020863f5d18fafcc59f74f26d725849f65 (diff) | |
download | FreeBSD-src-28f076df826eec909ee0434b993c39a3ab0d4281.zip FreeBSD-src-28f076df826eec909ee0434b993c39a3ab0d4281.tar.gz |
getcwd() won't leave a error string in the buffer, unlike getwd().
-rw-r--r-- | libexec/ftpd/ftpd.c | 2 |
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."); |