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
+++ /dev/null
-^samba3.smb2.dirlease.oplocks\(fileserver\)
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",