From: Todd C. Miller Date: Sun, 18 Apr 2010 16:42:52 +0000 (-0400) Subject: Darwin >= 9.x has real setreuid(2) X-Git-Tag: SUDO_1_8_0~714 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c47ab0273a83392f81baa0569ffc4a0f72060692;p=sudo Darwin >= 9.x has real setreuid(2) --- diff --git a/configure b/configure index 0eb782c19..c5faf6db7 100755 --- a/configure +++ b/configure @@ -13085,7 +13085,10 @@ done CHECKSHADOW="false" ;; *-*-darwin*) - SKIP_SETREUID=yes + # Darwin has a real setreuid(2) starting with 9.0 + if test $OSMAJOR -lt 9; then + SKIP_SETREUID=yes + fi CHECKSHADOW="false" test -z "$with_pam" && AUTH_EXCL_DEF="PAM" : ${with_logincap='yes'} diff --git a/configure.in b/configure.in index e12a4ad7b..d811a3d10 100644 --- a/configure.in +++ b/configure.in @@ -1737,7 +1737,10 @@ case "$host" in CHECKSHADOW="false" ;; *-*-darwin*) - SKIP_SETREUID=yes + # Darwin has a real setreuid(2) starting with 9.0 + if test $OSMAJOR -lt 9; then + SKIP_SETREUID=yes + fi CHECKSHADOW="false" test -z "$with_pam" && AUTH_EXCL_DEF="PAM" : ${with_logincap='yes'}