vfs_gpfs: Only clear sharemode on close when sharemode has been taken
commitef52a907fe80fdb1cd199a21a68126a7bf9b33cb
authorChristof Schmitt <cs@samba.org>
Mon, 6 Jan 2020 21:14:17 +0000 (6 14:14 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 8 Jan 2020 00:01:37 +0000 (8 00:01 +0000)
tree792d78db2c257eeee192c43055fa7ffb376ad899
parentc993480eeff7ff6aee7c4f90f103dcb8d1cd3c6f
vfs_gpfs: Only clear sharemode on close when sharemode has been taken

This avoids a redundant error message in case the call to acquire the
sharemode had failed before.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_gpfs.c