diff options
Diffstat (limited to 'uidswap.c')
-rw-r--r-- | uidswap.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -7,7 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "includes.h" | 9 | #include "includes.h" |
10 | RCSID("$Id: uidswap.c,v 1.3 1999/11/25 00:55:00 damien Exp $"); | 10 | RCSID("$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. */ |
31 | static uid_t saved_euid = 0; | 30 | static 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. |