vfs_gpfs: Cleanup clearing file system share mode
commiteff66787c646e6ce6375929f7d61e9f1b5a0e202
authorChristof Schmitt <cs@samba.org>
Fri, 3 Jan 2020 18:40:50 +0000 (3 11:40 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 8 Jan 2020 00:01:36 +0000 (8 00:01 +0000)
tree29c6374aaf1a493db2ec37f802617373e078eb05
parent79a50e75b24e7c236f7a5422c7676d45bbe93365
vfs_gpfs: Cleanup clearing file system share mode

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>
source3/modules/vfs_gpfs.c