mirror of
https://github.com/opnsense/src.git
synced 2026-07-16 12:33:07 -04:00
Make the check easier to read.
Obtained from: WHEEL Systems
This commit is contained in:
parent
b039f8c2aa
commit
7e73ee85ab
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue