Return to uidswap.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.16, 2001/04/20 16:32:22 | version 1.17, 2001/08/08 18:20:15 | ||
---|---|---|---|
|
|
||
void | void | ||
permanently_set_uid(struct passwd *pw) | permanently_set_uid(struct passwd *pw) | ||
{ | { | ||
/* it's a no-op unless privileged */ | |||
if (!privileged) | |||
return; | |||
if (temporarily_use_uid_effective) | if (temporarily_use_uid_effective) | ||
fatal("restore_uid: temporarily_use_uid effective"); | fatal("restore_uid: temporarily_use_uid effective"); | ||
if (setgid(pw->pw_gid) < 0) | if (setgid(pw->pw_gid) < 0) |