summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2000-12-21 22:33:45 +0000
committerKevin Steves <stevesk@pobox.com>2000-12-21 22:33:45 +0000
commita074feb65d6f1fcad02e80b751e2287fd6230b09 (patch)
tree251cf49da8454f5ad6b3d4ac7449c33617848d9d /uidswap.c
parent82cf0ceea899d4c7a47bdec79eea6dc2a8576bc7 (diff)
- (stevesk) OpenBSD CVS updates:
- markus@cvs.openbsd.org 2000/12/19 15:43:45 [authfile.c channels.c sftp-server.c ssh-agent.c] remove() -> unlink() for consistency - markus@cvs.openbsd.org 2000/12/19 15:48:09 [ssh-keyscan.c] replace <ssl/x.h> with <openssl/x.h> - markus@cvs.openbsd.org 2000/12/17 02:33:40 [uidswap.c] typo; from wsanchez@apple.com
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));