Oops. My last commit included a bug that would make "su -m" always
use /bin/sh. Fix this.
This commit is contained in:
parent
6f71a9531a
commit
b90e600892
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user