1 - chsh to /bin/sh leaves shell field of /etc/passwd blank
3 --- util-linux-2.11y/login-utils/chsh.c.sopwith Fri Sep 5 08:51:49 2003
4 +++ util-linux-2.11y/login-utils/chsh.c Fri Sep 5 08:53:43 2003
6 printf (_("Shell not changed.\n"));
9 - if (!strcmp(shell, "/bin/sh")) shell = "";
11 if (setpwnam (pw) < 0) {
14 check_shell (char *shell) {
17 + if (! *shell) shell = "/bin/sh"; /* Fudge it */
20 printf (_("%s: shell must be a full path name.\n"), whoami);