diff options
-rw-r--r-- | libexec/ftpd/ftpd.c | 1 | ||||
-rw-r--r-- | usr.sbin/sysinstall/user.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 7d685b5..68899dd 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -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; diff --git a/usr.sbin/sysinstall/user.c b/usr.sbin/sysinstall/user.c index 3e4a65c..1b0b845 100644 --- a/usr.sbin/sysinstall/user.c +++ b/usr.sbin/sysinstall/user.c @@ -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; |