]> granicus.if.org Git - sudo/commitdiff
Darwin >= 9.x has real setreuid(2)
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 18 Apr 2010 16:42:52 +0000 (12:42 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 18 Apr 2010 16:42:52 +0000 (12:42 -0400)
configure
configure.in

index 0eb782c193a4acd4ecb8e81e0104e6fdd6d315dd..c5faf6db7de6b3fd7b5f28c7d22cf436f5c67f37 100755 (executable)
--- 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'}
index e12a4ad7b71260c2b3d4ea457fd43dcc5f3ddccb..d811a3d102d1b4f8aa02a6a7accc4f95c0314b65 100644 (file)
@@ -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'}