diff options
-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 a50dabd..106b065 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -2553,7 +2553,7 @@ pwd(void) { char *s, path[MAXPATHLEN + 1]; - if (getwd(path) == NULL) + if (getcwd(path, sizeof(path)) == NULL) reply(550, "%s.", path); else { if ((s = doublequote(path)) == NULL) @@ -3130,7 +3130,7 @@ out: void reapchild(int signo) { - while (wait3(NULL, WNOHANG, NULL) > 0); + while (waitpid(-1, NULL, WNOHANG) > 0); } #ifdef OLD_SETPROCTITLE |