- (djm) [sftp-server.c] Some systems (e.g. Irix) have prctl() but not
PR_SET_DUMPABLE, so adjust ifdef; reported by Tom Christensen
diff --git a/sftp-server.c b/sftp-server.c
index 7783411..0177130 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1526,7 +1526,7 @@
log_init(__progname, log_level, log_facility, log_stderr);
-#ifdef HAVE_PRCTL
+#if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE)
/*
* On Linux, we should try to avoid making /proc/self/{mem,maps}
* available to the user so that sftp access doesn't automatically
@@ -1535,7 +1535,7 @@
*/
if (prctl(PR_SET_DUMPABLE, 0) != 0)
fatal("unable to make the process undumpable");
-#endif
+#endif /* defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE) */
if ((cp = getenv("SSH_CONNECTION")) != NULL) {
client_addr = xstrdup(cp);