From b90e600892dd10b0a209b02f7fdc2aa085e50b71 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Tue, 15 Jun 2004 20:23:02 +0000 Subject: [PATCH] Oops. My last commit included a bug that would make "su -m" always use /bin/sh. Fix this. --- usr.bin/su/su.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index f0853239574..57122e213db 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -290,8 +290,6 @@ main(int argc, char *argv[]) if (asme) { if (ruid != 0 && !chshell(pwd->pw_shell)) errx(1, "permission denied (shell)"); - shell = _PATH_BSHELL; - iscsh = NO; } else if (pwd->pw_shell && *pwd->pw_shell) { shell = pwd->pw_shell;