]> granicus.if.org Git - sudo/commitdiff
Fix typo; check pw_uid, not pw_gid after setusercontext() failure.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 15 Mar 2003 00:48:34 +0000 (00:48 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 15 Mar 2003 00:48:34 +0000 (00:48 +0000)
set_perms.c

index f83dbbbb4e5fda1b6e2da1fd9124c4398f864eb1..5152a3a140b68b515f13acc66b31f975088b048a 100644 (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");