]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Remove HAVE_MMAP and BROKEN_MMAP
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Sat, 5 Sep 2020 15:50:01 +0000 (17:50 +0200)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 11 Sep 2020 03:18:42 +0000 (13:18 +1000)
BROKEN_MMAP is no longer defined since commit
   1cfd5c06efb12 ("Remove portability support for mmap")

this commit also removed other HAVE_MMAP user. I didn't find anything
that defines HAVE_MMAP. The check does not trigger because compression
on server side is by default COMP_DELAYED (2) so it never triggers.

Remove remaining HAVE_MMAP and BROKEN_MMAP bits.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
defines.h
servconf.c

index b8ea88b2d21cbc873f5da3b65773de26346c5d5e..79dcb507feeb5ecddac31eec853b8d7dd28750fc 100644 (file)
--- a/defines.h
+++ b/defines.h
@@ -829,10 +829,6 @@ struct winsize {
 # define getgroups(a,b) ((a)==0 && (b)==NULL ? NGROUPS_MAX : getgroups((a),(b)))
 #endif
 
-#if defined(HAVE_MMAP) && defined(BROKEN_MMAP)
-# undef HAVE_MMAP
-#endif
-
 #ifndef IOV_MAX
 # if defined(_XOPEN_IOV_MAX)
 #  define      IOV_MAX         _XOPEN_IOV_MAX
index 2ce04cf14031c7f23e3ad2754054cb094c4dbaee..f08e37477957a1d25b766843b69b769790334037 100644 (file)
@@ -495,15 +495,6 @@ fill_default_server_options(ServerOptions *options)
                options->auth_methods[0] = NULL;
                options->num_auth_methods = 0;
        }
-
-#ifndef HAVE_MMAP
-       if (use_privsep && options->compression == 1) {
-               error("This platform does not support both privilege "
-                   "separation and compression");
-               error("Compression disabled");
-               options->compression = 0;
-       }
-#endif
 }
 
 /* Keyword tokens. */