mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130541
@ -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…
Reference in New Issue
Block a user