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:
b3d533a
)
smbd: Use smbd_do_unlocking() in smb_set_posix_lock()
author
Volker Lendecke
<vl@samba.org>
Fri, 14 Jun 2019 11:45:05 +0000
(
04:45
-0700)
committer
Jeremy Allison
<jra@samba.org>
Thu, 20 Jun 2019 17:18:17 +0000
(17:18 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index 3e364a80801195a44becddee027072514fbfa76f..27eb6270f60beef8484d45a43d5d19a02f635b02 100644
(file)
--- a/
source3/smbd/trans2.c
+++ b/
source3/smbd/trans2.c
@@
-7338,12
+7338,13
@@
static NTSTATUS smb_set_posix_lock(connection_struct *conn,
offset);
if (lock_type == UNLOCK_LOCK) {
- status = do_unlock(req->sconn->msg_ctx,
- fsp,
- smblctx,
- count,
- offset,
- POSIX_LOCK);
+ struct smbd_lock_element l = {
+ .smblctx = smblctx,
+ .brltype = UNLOCK_LOCK,
+ .offset = offset,
+ .count = count,
+ };
+ status = smbd_do_unlocking(req, fsp, 1, &l, POSIX_LOCK);
return status;
}