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)
downloadopenssh-git-fbd884a80d35bad7d69410096e3ab186783dd038.tar.gz
- (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 8b7f535b..bdfa484f 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 $");
* POSIX saved uids or not.
*/
-#ifdef _POSIX_SAVED_IDS
+#if defined(_POSIX_SAVED_IDS) && !defined(BROKEN_SAVED_UIDS)
/* Lets assume that posix saved ids also work with seteuid, even though that
is not part of the posix specification. */
#define SAVED_IDS_WORK_WITH_SETEUID
/* Saved effective uid. */
static uid_t saved_euid = 0;
-#endif /* _POSIX_SAVED_IDS */
+#endif
/*
* Temporarily changes to the given uid. If the effective user