diff options
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-rw-r--r-- | libexec/ftpd/ftpd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index a721ca2..90373c6 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -504,13 +504,13 @@ main(int argc, char *argv[], char **envp) (struct sockaddr *)&his_addr, &addrlen); if (fd >= 0) { - if ((pid = fork()) == 0) { - /* child */ - (void) dup2(fd, 0); - (void) dup2(fd, 1); - close(ctl_sock[i]); - } else - close(fd); + if ((pid = fork()) == 0) { + /* child */ + (void) dup2(fd, 0); + (void) dup2(fd, 1); + close(ctl_sock[i]); + } else + close(fd); } } if (pid == 0) |