version 1.229, 2008/02/20 15:25:26 |
version 1.230, 2008/02/22 05:58:56 |
|
|
if (dup2(err[0], 2) < 0) /* stderr */ |
if (dup2(err[0], 2) < 0) /* stderr */ |
perror("dup2 stderr"); |
perror("dup2 stderr"); |
|
|
closefrom(STDERR_FILENO + 1); |
|
|
|
/* Do processing for the child (exec command etc). */ |
/* Do processing for the child (exec command etc). */ |
do_child(s, command); |
do_child(s, command); |
/* NOTREACHED */ |
/* NOTREACHED */ |
|
|
if (!(options.use_login && command == NULL)) |
if (!(options.use_login && command == NULL)) |
do_login(s, command); |
do_login(s, command); |
|
|
closefrom(STDERR_FILENO + 1); |
|
|
|
/* Do common processing for the child, such as execing the command. */ |
/* Do common processing for the child, such as execing the command. */ |
do_child(s, command); |
do_child(s, command); |
/* NOTREACHED */ |
/* NOTREACHED */ |
|
|
if (login_getcapbool(lc, "requirehome", 0)) |
if (login_getcapbool(lc, "requirehome", 0)) |
exit(1); |
exit(1); |
} |
} |
|
|
|
closefrom(STDERR_FILENO + 1); |
|
|
if (!options.use_login) |
if (!options.use_login) |
do_rc_files(s, shell); |
do_rc_files(s, shell); |