Use 'cred' variable.
Obtained from: WHEEL Systems
This commit is contained in:
parent
e485df6d69
commit
b6b2ae8e26
@ -3210,8 +3210,7 @@ coredump(struct thread *td)
|
|||||||
MPASS((p->p_flag & P_HADTHREADS) == 0 || p->p_singlethread == td);
|
MPASS((p->p_flag & P_HADTHREADS) == 0 || p->p_singlethread == td);
|
||||||
_STOPEVENT(p, S_CORE, 0);
|
_STOPEVENT(p, S_CORE, 0);
|
||||||
|
|
||||||
name = expand_name(p->p_comm, td->td_ucred->cr_uid, p->p_pid, td,
|
name = expand_name(p->p_comm, cred->cr_uid, p->p_pid, td, compress);
|
||||||
compress);
|
|
||||||
if (name == NULL) {
|
if (name == NULL) {
|
||||||
PROC_UNLOCK(p);
|
PROC_UNLOCK(p);
|
||||||
#ifdef AUDIT
|
#ifdef AUDIT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user