diff options
author | trasz <trasz@FreeBSD.org> | 2009-11-11 13:49:22 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2009-11-11 13:49:22 +0000 |
commit | d4b9b0652fa0b0b687f22bf565585758514e412b (patch) | |
tree | ad32381212719622fd27dbddf9a2364ba6409f6b /sys | |
parent | d4c65d7a8b671efb05c2c21a31cdc2b0f22c7f9b (diff) | |
download | FreeBSD-src-d4b9b0652fa0b0b687f22bf565585758514e412b.zip FreeBSD-src-d4b9b0652fa0b0b687f22bf565585758514e412b.tar.gz |
Revert r198873. Having different VAPPEND semantics for VOP_ACCESS(9)
and VOP_ACCESSX(9) is not a good idea.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_default.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index d37e066..b80d03d 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -353,14 +353,6 @@ vop_stdaccessx(struct vop_accessx_args *ap) if (accmode == 0) return (0); - /* - * Many VOP_APPEND implementations don't expect VAPPEND without VWRITE - * being set, e.g. they check whether the filesystem is read-only only - * when VWRITE is set. Make sure we don't confuse them. - */ - if (accmode & VAPPEND) - accmode |= VWRITE; - return (VOP_ACCESS(ap->a_vp, accmode, ap->a_cred, ap->a_td)); } |