Fix typo; check pw_uid, not pw_gid after setusercontext() failure.

This commit is contained in:
Todd C. Miller
2003-03-15 00:48:34 +00:00
parent f4b5af8dac
commit 2aec2bd724

View File

@@ -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");