git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71c6da4
)
vfs_gpfs: Avoid "fsp->share_access" in vfs_gpfs_kernel_flock()
author
Volker Lendecke
<vl@samba.org>
Thu, 25 Jul 2019 12:50:35 +0000
(14:50 +0200)
committer
Jeremy Allison
<jra@samba.org>
Tue, 6 Aug 2019 21:49:29 +0000
(21:49 +0000)
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 <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_gpfs.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_gpfs.c
b/source3/modules/vfs_gpfs.c
index 2284849617808fc2e5ab65026cb15348df25f8d4..6994aa0938524dccaed9a92145d529526127d6d0 100644
(file)
--- 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;
}