From: Todd C. Miller Date: Sun, 15 Dec 2002 16:08:32 +0000 (+0000) Subject: don't compile set_perms_posix if we have setreuid or setresuid X-Git-Tag: SUDO_1_6_7~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1996179bf223af751d94679607941e0d4b91199f;p=sudo don't compile set_perms_posix if we have setreuid or setresuid --- diff --git a/set_perms.c b/set_perms.c index d672d65fa..ac159697c 100644 --- a/set_perms.c +++ b/set_perms.c @@ -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