summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
Diffstat (limited to 'uidswap.c')
-rw-r--r--uidswap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uidswap.c b/uidswap.c
index 76cbd6c40..19fc11b92 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: uidswap.c,v 1.9 2000/09/07 20:27:55 deraadt Exp $"); 15RCSID("$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));