summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-21 00:18:15 +1100
committerDamien Miller <djm@mindrot.org>2000-01-21 00:18:15 +1100
commitee1c0b3d3b1334d2e498aded0151ea8c0d804ebc (patch)
treeb31349cb094ac87bfcd36169810282a961be8f10 /uidswap.c
parenteab2ce023614ca49ad9d79c7c5a7ca8ee6204e7d (diff)
- NetBSD patch from David Rankin <drankin@bohemians.lexington.ky.us> and
Christos Zoulas <christos@netbsd.org>
Diffstat (limited to 'uidswap.c')
-rw-r--r--uidswap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/uidswap.c b/uidswap.c
index d81fde9d2..ca9e28eb7 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -7,7 +7,7 @@
7 */ 7 */
8 8
9#include "includes.h" 9#include "includes.h"
10RCSID("$Id: uidswap.c,v 1.3 1999/11/25 00:55:00 damien Exp $"); 10RCSID("$Id: uidswap.c,v 1.4 2000/01/20 13:18:16 damien Exp $");
11 11
12#include "ssh.h" 12#include "ssh.h"
13#include "uidswap.h" 13#include "uidswap.h"
@@ -25,11 +25,12 @@ RCSID("$Id: uidswap.c,v 1.3 1999/11/25 00:55:00 damien Exp $");
25/* Lets assume that posix saved ids also work with seteuid, even though that 25/* Lets assume that posix saved ids also work with seteuid, even though that
26 is not part of the posix specification. */ 26 is not part of the posix specification. */
27#define SAVED_IDS_WORK_WITH_SETEUID 27#define SAVED_IDS_WORK_WITH_SETEUID
28#endif /* _POSIX_SAVED_IDS */
29 28
30/* Saved effective uid. */ 29/* Saved effective uid. */
31static uid_t saved_euid = 0; 30static uid_t saved_euid = 0;
32 31
32#endif /* _POSIX_SAVED_IDS */
33
33/* 34/*
34 * Temporarily changes to the given uid. If the effective user 35 * Temporarily changes to the given uid. If the effective user
35 * id is not root, this does nothing. This call cannot be nested. 36 * id is not root, this does nothing. This call cannot be nested.