git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af087f9
)
s4-ntvfs: win7 does not check for the NONE smb2 lock flag on unlock
author
Andrew Tridgell
<tridge@samba.org>
Fri, 27 Nov 2009 08:09:10 +0000
(19:09 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 27 Nov 2009 08:42:10 +0000
(19:42 +1100)
source4/ntvfs/ntvfs_generic.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/ntvfs_generic.c
b/source4/ntvfs/ntvfs_generic.c
index 3319539b63d5361844aacbf4faff120bcfe6be62..059145b6e5a486e27a6881e9f5a43ccb627aa9bc 100644
(file)
--- a/
source4/ntvfs/ntvfs_generic.c
+++ b/
source4/ntvfs/ntvfs_generic.c
@@
-1116,7
+1116,8
@@
NTSTATUS ntvfs_map_lock(struct ntvfs_module_context *ntvfs,
isunlock = false;
}
for (i=0;i<lck->smb2.in.lock_count;i++) {
isunlock = false;
}
for (i=0;i<lck->smb2.in.lock_count;i++) {
- if (lck->smb2.in.locks[i].flags == SMB2_LOCK_FLAG_NONE) {
+ if (!isunlock &&
+ lck->smb2.in.locks[i].flags == SMB2_LOCK_FLAG_NONE) {
return NT_STATUS_INVALID_PARAMETER;
}
return NT_STATUS_INVALID_PARAMETER;
}