PERFORCE change 147157 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Aug 11 16:03:08 UTC 2008


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

Change 147157 by trasz at trasz_traszkan on 2008/08/11 16:02:50

	Check if we are allowed to remove target when overwriting
	using rename(2).

Affected files ...

.. //depot/projects/soc2008/trasz_nfs4acl/sys/ufs/ufs/ufs_lookup.c#11 edit

Differences ...

==== //depot/projects/soc2008/trasz_nfs4acl/sys/ufs/ufs/ufs_lookup.c#11 (text+ko) ====

@@ -604,6 +604,12 @@
 		    LK_EXCLUSIVE, &tdp)) != 0)
 			return (error);
 
+		error = ufs_delete_denied(vdp, tdp, cred, cnp->cn_thread);
+		if (error) {
+			vput(tdp);
+			return (error);
+		}
+
 #ifdef SunOS_doesnt_do_that
 		/*
 		 * The only purpose of this check is to return the correct


More information about the p4-projects mailing list