version 1.4, 1999/11/24 00:26:04 |
version 1.5, 1999/11/24 19:53:54 |
|
|
if (seteuid(saved_euid) < 0) |
if (seteuid(saved_euid) < 0) |
debug("seteuid %d: %.100s", (int) saved_euid, strerror(errno)); |
debug("seteuid %d: %.100s", (int) saved_euid, strerror(errno)); |
#else /* SAVED_IDS_WORK_WITH_SETEUID */ |
#else /* SAVED_IDS_WORK_WITH_SETEUID */ |
/* We are unable to restore the real uid to its unprivileged |
/* |
value. */ |
* We are unable to restore the real uid to its unprivileged value. |
/* Propagate the real uid (usually more privileged) to effective |
* Propagate the real uid (usually more privileged) to effective uid |
uid as well. */ |
* as well. |
|
*/ |
setuid(getuid()); |
setuid(getuid()); |
#endif /* SAVED_IDS_WORK_WITH_SETEUID */ |
#endif /* SAVED_IDS_WORK_WITH_SETEUID */ |
} |
} |