Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 2009 18:09:22 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200041 - head/sys/fs/portalfs
Message-ID:  <200912021809.nB2I9MKt049579@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Wed Dec  2 18:09:22 2009
New Revision: 200041
URL: http://svn.freebsd.org/changeset/base/200041

Log:
  Don't use ap->a_td->td_ucred when we were passed ap->a_cred.

Modified:
  head/sys/fs/portalfs/portal_vnops.c

Modified: head/sys/fs/portalfs/portal_vnops.c
==============================================================================
--- head/sys/fs/portalfs/portal_vnops.c	Wed Dec  2 17:50:52 2009	(r200040)
+++ head/sys/fs/portalfs/portal_vnops.c	Wed Dec  2 18:09:22 2009	(r200041)
@@ -246,7 +246,7 @@ portal_open(ap)
 	/*
 	 * Create a new socket.
 	 */
-	error = socreate(AF_UNIX, &so, SOCK_STREAM, 0, ap->a_td->td_ucred,
+	error = socreate(AF_UNIX, &so, SOCK_STREAM, 0, ap->a_cred,
 	    ap->a_td);
 	if (error)
 		goto bad;



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