mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 21:07:55 +00:00
Fix typo; check pw_uid, not pw_gid after setusercontext() failure.
This commit is contained in:
parent
f4b5af8dac
commit
2aec2bd724
@ -393,7 +393,7 @@ runas_setup()
|
||||
error = setusercontext(lc, runas_pw,
|
||||
runas_pw->pw_uid, flags);
|
||||
if (error) {
|
||||
if (runas_pw->pw_gid != 0)
|
||||
if (runas_pw->pw_uid != 0)
|
||||
fatal("unable to set user context", 1);
|
||||
else
|
||||
perror("unable to set user context");
|
||||
|
Loading…
x
Reference in New Issue
Block a user