[BACK]Return to set_perms.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Diff for /src/usr.bin/sudo/Attic/set_perms.c between version 1.5 and 1.6

version 1.5, 2002/01/23 23:03:24 version 1.6, 2002/07/20 12:32:11
Line 313 
Line 313 
         } else          } else
 #endif /* HAVE_LOGIN_CAP_H */  #endif /* HAVE_LOGIN_CAP_H */
         {          {
             if (setgid(runas_pw->pw_gid))              if (setgid(runas_pw->pw_gid)) {
                 perror("cannot set gid to runas 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  #ifdef HAVE_INITGROUPS
             /*              /*
              * Initialize group vector unless asked not to.               * Initialize group vector unless asked not to.

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6