version 1.5, 2002/01/23 23:03:24 |
version 1.6, 2002/07/20 12:32:11 |
|
|
} 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. |