From 28f076df826eec909ee0434b993c39a3ab0d4281 Mon Sep 17 00:00:00 2001 From: yar 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/ftpd/ftpd.c') 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."); -- cgit v1.1