diff options
author | 2000-01-18 18:26:38 +0000 | |
---|---|---|
committer | 2000-01-18 18:26:38 +0000 | |
commit | a6957e8cd7bf275a5c33423aa168d716b76836ff (patch) | |
tree | 55f456dc91925fe92dda928512de394421fc66c8 | |
parent | serial console (diff) | |
download | wireguard-openbsd-a6957e8cd7bf275a5c33423aa168d716b76836ff.tar.xz wireguard-openbsd-a6957e8cd7bf275a5c33423aa168d716b76836ff.zip |
Fix a pasto in the last commit. The genesis of this bug is actually
somewhat interesting. The getwd() function has historically placed
an error message in the buffer on failure, but getcwd() does not.
Therefor, a bulk search and replace of getwd() with getcwd() can
create bugs like this one.
-rw-r--r-- | libexec/ftpd/ftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 961cc0ad5ed..fc926ad130e 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.67 2000/01/18 05:02:05 millert Exp $ */ +/* $OpenBSD: ftpd.c,v 1.68 2000/01/18 18:26:38 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, "Can't get current directory: %s.", path); + reply(550, "Can't get current directory: %s.", strerror(errno)); else replydirname(path, "is current directory."); } |