1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-07 09:49:30 +03:00

r22865: handle pending locks in smb2

metze
(This used to be commit 8329fa6895)
This commit is contained in:
Stefan Metzmacher
2007-05-14 17:58:28 +00:00
committed by Gerald (Jerry) Carter
parent 5eb7420f11
commit 37f8c04d90

View File

@ -999,7 +999,11 @@ _PUBLIC_ NTSTATUS ntvfs_map_lock(struct ntvfs_module_context *ntvfs,
} else {
lck2->generic.in.mode = LOCKING_ANDX_SHARED_LOCK;
}
lck2->generic.in.timeout = 0;
if (lck->smb2.in.flags & SMB2_LOCK_FLAG_NO_PENDING) {
lck2->generic.in.timeout = 0;
} else {
lck2->generic.in.timeout = UINT32_MAX;
}
if (lck->smb2.in.flags & SMB2_LOCK_FLAG_UNLOCK) {
lck2->generic.in.ulock_cnt = 1;
lck2->generic.in.lock_cnt = 0;