PERFORCE change 113282 for review

Todd Miller millert at FreeBSD.org
Sun Jan 21 22:39:42 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=113282

Change 113282 by millert at millert_macbook on 2007/01/21 22:34:12

	Remove a needless deviation from vendor code.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vfs/vfs_syscalls.c#21 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vfs/vfs_syscalls.c#21 (text+ko) ====

@@ -2216,11 +2216,10 @@
 	dvp = nd.ni_dvp;
 	vp = nd.ni_vp;
 
-	VATTR_INIT(&va);
-	VATTR_SET(&va, va_type, VLNK);
-	VATTR_SET(&va, va_mode, ACCESSPERMS & ~p->p_fd->fd_cmask);
-
 	if (vp == NULL) {
+		VATTR_INIT(&va);
+		VATTR_SET(&va, va_type, VLNK);
+		VATTR_SET(&va, va_mode, ACCESSPERMS & ~p->p_fd->fd_cmask);
 #ifdef MAC
 		error = mac_vnode_check_create(vfs_context_ucred(&context),
 		    dvp, &nd.ni_cnd, &va);


More information about the trustedbsd-cvs mailing list