summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
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.