svn commit: r244293 - head/sys/kern

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Dec 16 14:14:19 UTC 2012


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);


More information about the svn-src-all mailing list