svn commit: r194697 - head/sys/kern

Peter Holm pho at FreeBSD.org
Tue Jun 23 11:29:55 UTC 2009


Author: pho
Date: Tue Jun 23 11:29:54 2009
New Revision: 194697
URL: http://svn.freebsd.org/changeset/base/194697

Log:
  vn_open_cred() needs a non NULL ucred pointer
  
  Reviewed by:	kib

Modified:
  head/sys/kern/kern_sig.c

Modified: head/sys/kern/kern_sig.c
==============================================================================
--- head/sys/kern/kern_sig.c	Tue Jun 23 10:59:59 2009	(r194696)
+++ head/sys/kern/kern_sig.c	Tue Jun 23 11:29:54 2009	(r194697)
@@ -2941,7 +2941,7 @@ restart:
 	NDINIT(&nd, LOOKUP, NOFOLLOW | MPSAFE, UIO_SYSSPACE, name, td);
 	flags = O_CREAT | FWRITE | O_NOFOLLOW;
 	error = vn_open_cred(&nd, &flags, S_IRUSR | S_IWUSR, VN_OPEN_NOAUDIT,
-	    NULL, NULL);
+	    cred, NULL);
 	if (error) {
 #ifdef AUDIT
 		audit_proc_coredump(td, name, error);


More information about the svn-src-all mailing list