mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Interpret VAPPEND correctly in vaccess_acl_nfs4(9).
This commit is contained in:
parent
d90331f910
commit
28d3fd007e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200723
@ -82,6 +82,13 @@ _access_mask_from_accmode(accmode_t accmode)
|
||||
access_mask |= accmode2mask[i].mask;
|
||||
}
|
||||
|
||||
/*
|
||||
* VAPPEND is just a modifier for VWRITE; if the caller asked
|
||||
* for 'VAPPEND | VWRITE', we want to check for ACL_APPEND_DATA only.
|
||||
*/
|
||||
if (access_mask & ACL_APPEND_DATA)
|
||||
access_mask &= ~ACL_WRITE_DATA;
|
||||
|
||||
return (access_mask);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user