]> granicus.if.org Git - sudo/commitdiff
now treats "" as bourne shell
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 5 Feb 1996 03:50:32 +0000 (03:50 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 5 Feb 1996 03:50:32 +0000 (03:50 +0000)
getspwuid.c

index ebace5452ed7babfff41755c1f413e1647de4fca..8f5b00e3fe3b4f2bf3b4cfd3f93ee931d6aa5aff 100644 (file)
@@ -112,6 +112,12 @@ static char *sudo_getshell(pw_ent)
     if ((pw_shell = getenv("SHELL")) == NULL)
        pw_shell = pw_ent -> pw_shell;
 
+#ifdef _PATH_BSHELL
+    /* empty string "" means bourne shell */
+    if (*pw_shell == '\0')
+       pw_shell = _PATH_BSHELL;
+#endif /* _PATH_BSHELL */
+
     return(pw_shell);
 }