The VFS flock function is called with a zero access_mask to indicate
that the share mode should be cleared. Adjust the check to directly
check the access_mask and provide a better message to indicate this
case.
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
unsigned int deny = GPFS_DENY_NONE;
int result;
- allow = vfs_gpfs_access_mask_to_allow(access_mask);
-
- if (allow == GPFS_SHARE_NONE) {
- DEBUG(10, ("special case am=no_access:%x\n",access_mask));
- }
- else {
+ if (access_mask == 0) {
+ DBG_DEBUG("Clearing file system share mode.\n");
+ } else {
+ allow = vfs_gpfs_access_mask_to_allow(access_mask);
deny = vfs_gpfs_share_access_to_deny(share_access);
}
DEBUG(10, ("am=%x, allow=%d, sa=%x, deny=%d\n",