diff options
Diffstat (limited to 'uidswap.c')
-rw-r--r-- | uidswap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: uidswap.c,v 1.9 2000/09/07 20:27:55 deraadt Exp $"); | 15 | RCSID("$OpenBSD: uidswap.c,v 1.10 2000/12/17 09:33:40 markus Exp $"); |
16 | 16 | ||
17 | #include "ssh.h" | 17 | #include "ssh.h" |
18 | #include "uidswap.h" | 18 | #include "uidswap.h" |
@@ -50,7 +50,7 @@ temporarily_use_uid(uid_t uid) | |||
50 | /* Set the effective uid to the given (unprivileged) uid. */ | 50 | /* Set the effective uid to the given (unprivileged) uid. */ |
51 | if (seteuid(uid) == -1) | 51 | if (seteuid(uid) == -1) |
52 | debug("seteuid %u: %.100s", (u_int) uid, strerror(errno)); | 52 | debug("seteuid %u: %.100s", (u_int) uid, strerror(errno)); |
53 | #else /* SAVED_IDS_WORK_WITH_SETUID */ | 53 | #else /* SAVED_IDS_WORK_WITH_SETEUID */ |
54 | /* Propagate the privileged uid to all of our uids. */ | 54 | /* Propagate the privileged uid to all of our uids. */ |
55 | if (setuid(geteuid()) < 0) | 55 | if (setuid(geteuid()) < 0) |
56 | debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); | 56 | debug("setuid %u: %.100s", (u_int) geteuid(), strerror(errno)); |