]> granicus.if.org Git - sudo/commitdiff
Don't enable noexec for AIX 5.0-5.2, we need 5.3 and above.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 14 Nov 2016 18:00:43 +0000 (11:00 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 14 Nov 2016 18:00:43 +0000 (11:00 -0700)
configure
configure.ac

index 08e821cce80fda4cd4ed07faa69c36c7a01818ab..8be0338add0db98c6f07b58ab81ceced78153bd3 100755 (executable)
--- a/configure
+++ b/configure
                fi
 
                # LDR_PRELOAD is only supported in AIX 5.3 and later
-               if test $OSMAJOR -lt 5; then
-                   with_noexec=no
-               else
-                   RTLD_PRELOAD_VAR="LDR_PRELOAD"
-               fi
+               case "$OSREV" in
+                   [1-4].*)    with_noexec=no;;
+                   5.[1-2]*)   with_noexec=no;;
+                   *)          RTLD_PRELOAD_VAR="LDR_PRELOAD";;
+               esac
 
                # Remove timedir on boot, AIX does not have /var/run
                INIT_SCRIPT=aix.sh
index 45a6f5fe2757e321605ce6ad5357bf7265f74cad..438d25cf8ca4488f3c993344a7df687d93dd4d32 100644 (file)
@@ -1737,11 +1737,11 @@ case "$host" in
                fi
 
                # LDR_PRELOAD is only supported in AIX 5.3 and later
-               if test $OSMAJOR -lt 5; then
-                   with_noexec=no
-               else
-                   RTLD_PRELOAD_VAR="LDR_PRELOAD"
-               fi
+               case "$OSREV" in
+                   [[1-4]].*)  with_noexec=no;;
+                   5.[[1-2]]*) with_noexec=no;;
+                   *)          RTLD_PRELOAD_VAR="LDR_PRELOAD";;
+               esac
 
                # Remove timedir on boot, AIX does not have /var/run
                INIT_SCRIPT=aix.sh