BUG: https://bugzilla.samba.org/show_bug.cgi?id=15767
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit
678f28c1af7c160ffdcb0e4baa0a7d4b9906f2e5)
return True;
}
- if (!lp_locking(fsp->conn->params) || !strict_locking) {
+ if (!lp_locking(fsp->conn->params) ||
+ !strict_locking ||
+ !fsp->fsp_flags.can_lock)
+ {
return True;
}