svn commit: r244288 - head/sys/kern

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Dec 16 13:56:38 UTC 2012


Author: pjd
Date: Sun Dec 16 13:56:38 2012
New Revision: 244288
URL: http://svnweb.freebsd.org/changeset/base/244288

Log:
  Use 'cred' variable.
  
  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 11:16:13 2012	(r244287)
+++ head/sys/kern/kern_sig.c	Sun Dec 16 13:56:38 2012	(r244288)
@@ -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


More information about the svn-src-all mailing list