From 75933089afc4d9469d6820ab5f118815d195b8df Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Thu, 18 Nov 2004 00:14:09 +0000 Subject: getcwd() won't leave a error string in the buffer, unlike getwd(). --- libexec/ftpd/ftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec') diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 106b0650a455..3b37d9a64c75 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."); -- cgit v1.3