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