summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-27 08:39:07 +1100
committerDamien Miller <djm@mindrot.org>2001-02-27 08:39:07 +1100
commitfbd884a80d35bad7d69410096e3ab186783dd038 (patch)
tree087729e583f7eb0dce13a0a738526ae2b6c06a2a /uidswap.c
parent0c100870ac1c271a0a3d65099777af312e71d865 (diff)
- (djm) Fix up POSIX saved uid support. Report from Mark Miller
<markm@swoon.net> - (djm) Search for -lcrypt on FreeBSD too
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 8b7f535be..bdfa484fc 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -26,13 +26,13 @@ RCSID("$OpenBSD: uidswap.c,v 1.13 2001/01/21 19:06:01 markus Exp $");
26 * POSIX saved uids or not. 26 * POSIX saved uids or not.
27 */ 27 */
28 28
29#ifdef _POSIX_SAVED_IDS 29#if defined(_POSIX_SAVED_IDS) && !defined(BROKEN_SAVED_UIDS)
30/* Lets assume that posix saved ids also work with seteuid, even though that 30/* Lets assume that posix saved ids also work with seteuid, even though that
31 is not part of the posix specification. */ 31 is not part of the posix specification. */
32#define SAVED_IDS_WORK_WITH_SETEUID 32#define SAVED_IDS_WORK_WITH_SETEUID
33/* Saved effective uid. */ 33/* Saved effective uid. */
34static uid_t saved_euid = 0; 34static uid_t saved_euid = 0;
35#endif /* _POSIX_SAVED_IDS */ 35#endif
36 36
37/* 37/*
38 * Temporarily changes to the given uid. If the effective user 38 * Temporarily changes to the given uid. If the effective user