version 1.9, 2000/09/07 20:27:55 |
version 1.10, 2000/12/17 09:33:40 |
|
|
/* Set the effective uid to the given (unprivileged) uid. */ |
/* Set the effective uid to the given (unprivileged) uid. */ |
if (seteuid(uid) == -1) |
if (seteuid(uid) == -1) |
debug("seteuid %u: %.100s", (u_int) uid, strerror(errno)); |
debug("seteuid %u: %.100s", (u_int) uid, strerror(errno)); |
#else /* SAVED_IDS_WORK_WITH_SETUID */ |
#else /* SAVED_IDS_WORK_WITH_SETEUID */ |
/* Propagate the privileged uid to all of our uids. */ |
/* Propagate the privileged uid to all of our uids. */ |
if (setuid(geteuid()) < 0) |
if (setuid(geteuid()) < 0) |
debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); |
debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); |