Date: Mon, 11 Aug 2008 16:03:07 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 147157 for review Message-ID: <200808111603.m7BG37k3033156@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147157 Change 147157 by trasz@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808111603.m7BG37k3033156>