]> granicus.if.org Git - sudo/commitdiff
don't compile set_perms_posix if we have setreuid or setresuid
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 15 Dec 2002 16:08:32 +0000 (16:08 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 15 Dec 2002 16:08:32 +0000 (16:08 +0000)
set_perms.c

index d672d65fa735fb2cffaa8686d910c2c1967d2366..ac159697c67810c830806a00b16dcc996b069c8e 100644 (file)
@@ -75,7 +75,8 @@ static const char rcsid[] = "$Sudo$";
 static void runas_setup                __P((void));
 static void fatal              __P((char *, int));
 
-#if !defined(NO_SAVED_IDS) && defined(_SC_SAVED_IDS) && defined(_SC_VERSION)
+#if !defined(HAVE_SETRESUID) && !defined(HAVE_SETREUID) && \
+    !defined(NO_SAVED_IDS) && defined(_SC_SAVED_IDS) && defined(_SC_VERSION)
 /*
  * Set real and effective uids and gids based on perm.
  * Since we have POSIX saved IDs we can get away with just