From
4b3f45e13f9c11920924c034a457ea2cb8e15e18 Mon Sep 17 00:00:00 2001
Origin: upstream, https://bugzilla.samba.org/show_bug.cgi?id=15836
Forwarded: yes
Bug-Debian: https://bugs.debian.org/
1100604
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15836
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Mar 28 07:53:25 UTC 2025 on atb-devel-224
Gbp-Pq: Name smbd-fix-handling-of-directory-leases-and-oplock-lev.patch
keep_locked = true;
}
+ if ((oplock_request != NO_OPLOCK) && (oplock_request != LEASE_OPLOCK)) {
+ /*
+ * No oplocks on directories, only leases
+ */
+ oplock_request = NO_OPLOCK;
+ }
+
lck_state = (struct open_ntcreate_lock_state) {
.fsp = fsp,
.object_type = "directory",