diff options
| author | 2013-03-19 00:48:08 +0000 | |
|---|---|---|
| committer | 2013-03-19 00:48:08 +0000 | |
| commit | 28412d25bb75b5a3e9a88ca4aef6cdeff9ff280d (patch) | |
| tree | c8913a790e25a53d67b2d2a3462354328945deea | |
| parent | dont need to event_add the parent to child writing events twice. especially (diff) | |
| download | wireguard-openbsd-28412d25bb75b5a3e9a88ca4aef6cdeff9ff280d.tar.xz wireguard-openbsd-28412d25bb75b5a3e9a88ca4aef6cdeff9ff280d.zip | |
Fix use_loginclass, backport from upstream.
| -rw-r--r-- | usr.bin/sudo/sudo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sudo/sudo.c b/usr.bin/sudo/sudo.c index a299bdc1f1d..def74a2717d 100644 --- a/usr.bin/sudo/sudo.c +++ b/usr.bin/sudo/sudo.c @@ -305,7 +305,7 @@ main(argc, argv, envp) log_error(NO_STDERR|NO_EXIT, "problem with defaults entries"); /* Set login class if applicable. */ - set_loginclass(sudo_user.pw); + set_loginclass(runas_pw ? runas_pw : sudo_user.pw); /* Update initial shell now that runas is set. */ if (ISSET(sudo_mode, MODE_LOGIN_SHELL)) |
