diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2010-10-20 19:53:29 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2010-10-20 19:53:29 +0000 |
| commit | 587250b286a2cd9b02c296e5d78ecd21c7bdf255 (patch) | |
| tree | 5a3738f96cf8ed3e49857e03ed2304cd4010ef6f /usr.bin/login | |
| parent | ab05568beb985e7949c87e0a1a1dff7afca056c9 (diff) | |
Notes
Diffstat (limited to 'usr.bin/login')
| -rw-r--r-- | usr.bin/login/login.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 3e826d57bda8..e671c8dfac75 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -233,8 +233,7 @@ main(int argc, char *argv[]) setproctitle("-%s", getprogname()); - for (cnt = getdtablesize(); cnt > 2; cnt--) - (void)close(cnt); + closefrom(3); /* * Get current TTY |
