Fix typo; check pw_uid, not pw_gid after setusercontext() failure.
This commit is contained in:
@@ -393,7 +393,7 @@ runas_setup()
|
|||||||
error = setusercontext(lc, runas_pw,
|
error = setusercontext(lc, runas_pw,
|
||||||
runas_pw->pw_uid, flags);
|
runas_pw->pw_uid, flags);
|
||||||
if (error) {
|
if (error) {
|
||||||
if (runas_pw->pw_gid != 0)
|
if (runas_pw->pw_uid != 0)
|
||||||
fatal("unable to set user context", 1);
|
fatal("unable to set user context", 1);
|
||||||
else
|
else
|
||||||
perror("unable to set user context");
|
perror("unable to set user context");
|
||||||
|
Reference in New Issue
Block a user