SCCS-vsn: libexec/ftpd/ftpd.c 5.8
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)ftpd.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)ftpd.c 5.8 (Berkeley) %G%";
pw = getpwnam(name);
if (pw == NULL)
return (0);
pw = getpwnam(name);
if (pw == NULL)
return (0);
+ if (pw ->pw_shell == NULL || pw->pw_shell[0] == NULL)
+ pw->pw_shell = "/bin/sh";
while ((cp = getusershell()) != NULL)
if (strcmp(cp, pw->pw_shell) == 0)
break;
while ((cp = getusershell()) != NULL)
if (strcmp(cp, pw->pw_shell) == 0)
break;
endusershell();
if (cp == NULL)
return (0);
endusershell();
if (cp == NULL)
return (0);