From: Darren Tucker Date: Tue, 14 Jun 2016 00:43:53 +0000 (+1000) Subject: Shorten prctl code a tiny bit. X-Git-Tag: V_7_3_P1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f916d39b039fdc0b5baf9b5ab0754c0f11ec573;p=thirdparty%2Fopenssh-portable.git Shorten prctl code a tiny bit. --- diff --git a/platform.c b/platform.c index ee3e06914..e3722e4ae 100644 --- a/platform.c +++ b/platform.c @@ -226,8 +226,7 @@ platform_disable_tracing(int strict) { #if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE) /* Disable ptrace on Linux without sgid bit */ - if (prctl(PR_SET_DUMPABLE, 0) != 0) - if (strict) - fatal("unable to make the process undumpable"); + if (prctl(PR_SET_DUMPABLE, 0) != 0 && strict) + fatal("unable to make the process undumpable"); #endif }