summaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>2004-01-18 21:29:33 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>2004-01-18 21:29:33 +0000
commitc433c9daacf283fde6af4a9a1a2dde5e3e6458e8 (patch)
treee49fa45be9f4273a8d00600032cc233f2a5ca816 /libexec/ftpd
parentf434362a8a24554a984dad6fd773a2eabf85206b (diff)
Notes
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 7d685b5de1dd..68899ddea10a 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;