diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-11-17 22:43:46 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-11-17 22:43:46 +0000 |
| commit | de9b6c03438a7531f55d122324c04815d13fabe8 (patch) | |
| tree | e118b1e7ead3c643b41b11a636d767180923ea91 /libexec | |
| parent | 973b9e347b61e2e7f1847f2e97bf16172776fe84 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -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 a50dabde9d85..106b0650a455 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 |
