Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2012 13:56:38 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244288 - head/sys/kern
Message-ID:  <201212161356.qBGDucpa087249@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212161356.qBGDucpa087249>