version 1.52, 2003/11/09 20:13:57 |
version 1.53, 2004/01/23 03:48:43 |
|
|
} else |
} else |
ask = 1; |
ask = 1; |
|
|
for (cnt = getdtablesize(); cnt > 2; cnt--) |
closefrom(3); |
(void)close(cnt); |
|
|
|
/* |
/* |
* If effective user is not root, just run su(1) to emulate login(1). |
* If effective user is not root, just run su(1) to emulate login(1). |
|
|
* Assume that stdin, stdout and stderr are 0, 1 and 2, and that |
* Assume that stdin, stdout and stderr are 0, 1 and 2, and that |
* STDERR_FILENO is 2. |
* STDERR_FILENO is 2. |
*/ |
*/ |
for (cnt = getdtablesize(); cnt > STDERR_FILENO; cnt--) |
closefrom(STDERR_FILENO + 1); |
(void)close(cnt); |
|
|
|
/* |
/* |
* Close the authentication session, make sure it is marked |
* Close the authentication session, make sure it is marked |