summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-01-18 05:02:06 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-01-18 05:02:06 +0000
commit16c1f3d8f86ccaf12903b4d52cbb76d7b34c5be2 (patch)
tree4ceec44188274c65e3d416b8f40dc20f0bf09c22 /libexec
parenta069d26bc905dbf6dabe64efaa1404e6f08ad73a (diff)
"pwd" should print an error, not garbage, if getcwd() fails; form@vell.nsc.ru
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index bf3f7bea219..961cc0ad5ed 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpd.c,v 1.66 2000/01/14 20:58:21 ericj Exp $ */
+/* $OpenBSD: ftpd.c,v 1.67 2000/01/18 05:02:05 millert Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
@@ -1959,7 +1959,7 @@ pwd()
char path[MAXPATHLEN];
if (getcwd(path, sizeof path) == (char *)NULL)
- reply(550, "%s.", path);
+ reply(550, "Can't get current directory: %s.", path);
else
replydirname(path, "is current directory.");
}