diff options
author | charnier <charnier@FreeBSD.org> | 2004-01-18 21:29:33 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2004-01-18 21:29:33 +0000 |
commit | 9af7d6a659dd43fdf23948c4dc010996d62f5e8d (patch) | |
tree | e49fa45be9f4273a8d00600032cc233f2a5ca816 /libexec | |
parent | 1f04fb4a421adf14be4e68d9e292691b6b9c6dc9 (diff) | |
download | FreeBSD-src-9af7d6a659dd43fdf23948c4dc010996d62f5e8d.zip FreeBSD-src-9af7d6a659dd43fdf23948c4dc010996d62f5e8d.tar.gz |
add missing setusershell() calls.
PR: bin/2442
Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/ftpd.c | 1 |
1 files changed, 1 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; |