Author: trasz
Date: Mon Oct 10 21:32:08 2011
New Revision: 226234
URL: http://svn.freebsd.org/changeset/base/226234
Log:
Make unionfs also clear VAPPEND when clearing VWRITE, since VAPPEND
is just a modifier for VWRITE.
Submitted by: rmacklem
Modified:
head/sys/fs/unionfs/union_vnops.c
Modified: head/sys/fs/unionfs/union_vnops.c
==============================================================================
--- head/sys/fs/unionfs/union_vnops.c Mon Oct 10 20:57:54 2011
(r226233)
+++ head/sys/fs/unionfs/union_vnops.c Mon Oct 10 21:32:08 2011
(r226234)
@@ -748,7 +748,7 @@ unionfs_access(struct vop_access_args *a
return (error);
}
}
- accmode &= ~VWRITE;
+ accmode &= ~(VWRITE | VAPPEND);
accmode |= VREAD; /* will copy to upper */
}
error = VOP_ACCESS(lvp, accmode, ap->a_cred, td);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"