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