Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2012 14:14:18 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244293 - head/sys/kern
Message-ID:  <201212161414.qBGEEItq090452@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun Dec 16 14:14:18 2012
New Revision: 244293
URL: http://svnweb.freebsd.org/changeset/base/244293

Log:
  Make the check easier to read.
  
  Obtained from:	WHEEL Systems

Modified:
  head/sys/kern/kern_sig.c

Modified: head/sys/kern/kern_sig.c
==============================================================================
--- head/sys/kern/kern_sig.c	Sun Dec 16 14:13:10 2012	(r244292)
+++ head/sys/kern/kern_sig.c	Sun Dec 16 14:14:18 2012	(r244293)
@@ -3218,8 +3218,7 @@ coredump(struct thread *td)
 #endif
 		return (EINVAL);
 	}
-	if (((sugid_coredump == 0) && p->p_flag & P_SUGID) ||
-	    do_coredump == 0) {
+	if (!do_coredump || (!sugid_coredump && (p->p_flag & P_SUGID) != 0)) {
 		PROC_UNLOCK(p);
 #ifdef AUDIT
 		audit_proc_coredump(td, name, EFAULT);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212161414.qBGEEItq090452>