* src/su.c: No need to change the user's shell in case of
subsystem root. Update the comments.
This commit is contained in:
7
src/su.c
7
src/su.c
@ -908,11 +908,10 @@ int main (int argc, char **argv)
|
||||
* --shell, which will be the one executed in the chroot later).
|
||||
*/
|
||||
if ('*' == pwent.pw_shell[0]) { /* subsystem root required */
|
||||
pwent.pw_shell++; /* skip the '*' */
|
||||
subsystem (&pwent); /* figure out what to execute */
|
||||
endpwent ();
|
||||
subsystem (&pwent); /* change to the subsystem root */
|
||||
endpwent (); /* close the old password databases */
|
||||
endspent ();
|
||||
goto top;
|
||||
goto top; /* authenticate in the subsystem */
|
||||
}
|
||||
|
||||
sulog (tty, true, oldname, name); /* save SU information */
|
||||
|
Reference in New Issue
Block a user