=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/set_perms.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- src/usr.bin/sudo/Attic/set_perms.c 2002/01/23 23:03:24 1.5 +++ src/usr.bin/sudo/Attic/set_perms.c 2002/07/20 12:32:11 1.6 @@ -313,8 +313,12 @@ } else #endif /* HAVE_LOGIN_CAP_H */ { - if (setgid(runas_pw->pw_gid)) - perror("cannot set gid to runas gid"); + if (setgid(runas_pw->pw_gid)) { + if (runas_pw->pw_gid != 0) + fatal("unable to set user context", 1); + else + perror("cannot set gid to runas gid"); + } #ifdef HAVE_INITGROUPS /* * Initialize group vector unless asked not to.