mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
Revert r198873. Having different VAPPEND semantics for VOP_ACCESS(9)
and VOP_ACCESSX(9) is not a good idea.
This commit is contained in:
parent
40350c1b23
commit
23e62e7654
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199183
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue