From: Volker Lendecke Date: Thu, 25 Jul 2019 12:50:35 +0000 (+0200) Subject: vfs_gpfs: Avoid "fsp->share_access" in vfs_gpfs_kernel_flock() X-Git-Tag: tdb-1.4.2~294 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81731c91414fdf32b150e6be120741dc3a3fdde3;p=thirdparty%2Fsamba.git vfs_gpfs: Avoid "fsp->share_access" in vfs_gpfs_kernel_flock() This was in vfs_gpfs.c from day one, no idea why both "share_mode" and "fsp->share_access" were used as if they were two different things. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 22848496178..6994aa09385 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -157,7 +157,7 @@ static int vfs_gpfs_kernel_flock(vfs_handle_struct *handle, files_struct *fsp, kernel_flock(fsp->fh->fd, share_mode, access_mask); - if (!set_gpfs_sharemode(fsp, access_mask, fsp->share_access)) { + if (!set_gpfs_sharemode(fsp, access_mask, share_mode)) { ret = -1; }