diff options
author | Damien Miller <djm@mindrot.org> | 2002-06-21 16:20:44 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-06-21 16:20:44 +1000 |
commit | 4903eb4b7461081c9a55cff3a4075fa3311e5e23 (patch) | |
tree | 84226438eb9e2ced41f0b9847757146deab9c41e /servconf.c | |
parent | 444f9fca60cb9f331e5add08bf398aaa47dd3ed6 (diff) |
- (djm) Warn and disable compression on platforms which can't handle both
useprivilegeseparation=yes and compression=yes
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/servconf.c b/servconf.c index b7f941ab5..fb6332c31 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -256,6 +256,16 @@ fill_default_server_options(ServerOptions *options) | |||
256 | /* Turn privilege separation on by default */ | 256 | /* Turn privilege separation on by default */ |
257 | if (use_privsep == -1) | 257 | if (use_privsep == -1) |
258 | use_privsep = 1; | 258 | use_privsep = 1; |
259 | |||
260 | #if !defined(HAVE_MMAP) || !defined(MAP_ANON) | ||
261 | if (use_privsep && options->compression == 1) { | ||
262 | error("This platform does not support both privilege " | ||
263 | "separation and compression"); | ||
264 | error("Compression disabled"); | ||
265 | options->compression = 0; | ||
266 | } | ||
267 | #endif | ||
268 | |||
259 | } | 269 | } |
260 | 270 | ||
261 | /* Keyword tokens. */ | 271 | /* Keyword tokens. */ |