diff options
author | trasz <trasz@FreeBSD.org> | 2011-10-10 21:32:08 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2011-10-10 21:32:08 +0000 |
commit | a817a28adc415d253948d5d8a085c264a80fe6c1 (patch) | |
tree | 7dd95dca7f1341f9eb055759e1f0a176a748cb76 /sys/fs/unionfs | |
parent | fe5c2c03047d786e5a685c0a141d93057cdbcb12 (diff) | |
download | FreeBSD-src-a817a28adc415d253948d5d8a085c264a80fe6c1.zip FreeBSD-src-a817a28adc415d253948d5d8a085c264a80fe6c1.tar.gz |
Make unionfs also clear VAPPEND when clearing VWRITE, since VAPPEND
is just a modifier for VWRITE.
Submitted by: rmacklem
Diffstat (limited to 'sys/fs/unionfs')
-rw-r--r-- | sys/fs/unionfs/union_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c index 11671cb..19ae7d2 100644 --- a/sys/fs/unionfs/union_vnops.c +++ b/sys/fs/unionfs/union_vnops.c @@ -748,7 +748,7 @@ unionfs_access(struct vop_access_args *ap) return (error); } } - accmode &= ~VWRITE; + accmode &= ~(VWRITE | VAPPEND); accmode |= VREAD; /* will copy to upper */ } error = VOP_ACCESS(lvp, accmode, ap->a_cred, td); |