add missing setusershell() calls.
PR: bin/2442 Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>
This commit is contained in:
parent
1f04fb4a42
commit
9af7d6a659
@ -1015,6 +1015,7 @@ user(char *name)
|
||||
if ((pw = sgetpwnam(name))) {
|
||||
if ((shell = pw->pw_shell) == NULL || *shell == 0)
|
||||
shell = _PATH_BSHELL;
|
||||
setusershell();
|
||||
while ((cp = getusershell()) != NULL)
|
||||
if (strcmp(cp, shell) == 0)
|
||||
break;
|
||||
|
@ -426,6 +426,7 @@ verifyUserSettings(WINDOW *ds_win)
|
||||
return 0;
|
||||
}
|
||||
if (strlen(shell) > 0) {
|
||||
setusershell();
|
||||
while((cp = getusershell()) != NULL)
|
||||
if (strcmp(cp, shell) == 0)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user