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
(cherry picked from commit
4b3f45e13f9c11920924c034a457ea2cb8e15e18)
Autobuild-User(v4-22-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-22-test): Fri Mar 28 14:53:26 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",