From: Todd C. Miller Date: Sat, 15 Mar 2003 00:48:34 +0000 (+0000) Subject: Fix typo; check pw_uid, not pw_gid after setusercontext() failure. X-Git-Tag: SUDO_1_6_7~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2aec2bd724dc30f151ed0ebe9df507d5ff9c46d0;p=sudo Fix typo; check pw_uid, not pw_gid after setusercontext() failure. --- diff --git a/set_perms.c b/set_perms.c index f83dbbbb4..5152a3a14 100644 --- a/set_perms.c +++ b/set_perms.c @@ -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");