]> andersk Git - openssh.git/blobdiff - uidswap.c
- (djm) Fix up POSIX saved uid support. Report from Mark Miller
[openssh.git] / uidswap.c
index 8b7f535bec978ede341a97ddac512d56e064e819..bdfa484fc2ef75caf358a23ea278ad32d3cabaf8 100644 (file)
--- 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
This page took 0.033468 seconds and 4 git commands to generate.