add missing setusershell() calls.

PR: bin/2442
Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>
This commit is contained in:
charnier 2004-01-18 21:29:33 +00:00
parent 1f04fb4a42
commit 9af7d6a659
2 changed files with 2 additions and 0 deletions

View File

@ -1015,6 +1015,7 @@ user(char *name)
if ((pw = sgetpwnam(name))) { if ((pw = sgetpwnam(name))) {
if ((shell = pw->pw_shell) == NULL || *shell == 0) if ((shell = pw->pw_shell) == NULL || *shell == 0)
shell = _PATH_BSHELL; shell = _PATH_BSHELL;
setusershell();
while ((cp = getusershell()) != NULL) while ((cp = getusershell()) != NULL)
if (strcmp(cp, shell) == 0) if (strcmp(cp, shell) == 0)
break; break;

View File

@ -426,6 +426,7 @@ verifyUserSettings(WINDOW *ds_win)
return 0; return 0;
} }
if (strlen(shell) > 0) { if (strlen(shell) > 0) {
setusershell();
while((cp = getusershell()) != NULL) while((cp = getusershell()) != NULL)
if (strcmp(cp, shell) == 0) if (strcmp(cp, shell) == 0)
break; break;