]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Default to not using sandbox when cross compiling.
authorDarren Tucker <dtucker@dtucker.net>
Tue, 8 Mar 2022 09:04:06 +0000 (20:04 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Tue, 8 Mar 2022 09:04:06 +0000 (20:04 +1100)
On most systems poll(2) does not work when the number of FDs is reduced
with setrlimit, so assume it doesn't when cross compiling and we can't
run the test.  bz#3398.

configure.ac

index 17fb1e609fbdea68860fe8d9bf053fe14ed2fb50..a165d0879a004d9b590aefb3f7d4ec7d3b780122 100644 (file)
@@ -3574,8 +3574,8 @@ AC_RUN_IFELSE(
         select_works_with_rlimit=yes],
        [AC_MSG_RESULT([no])
         select_works_with_rlimit=no],
-       [AC_MSG_WARN([cross compiling: assuming yes])
-        select_works_with_rlimit=yes]
+       [AC_MSG_WARN([cross compiling: assuming no])
+        select_works_with_rlimit=no]
 )
 
 AC_CHECK_MEMBERS([struct pollfd.fd], [], [], [[