From f5f7d1e9bf7e39933ccf7c874e682f9df80a6fec Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 23 May 2019 16:22:39 +0200 Subject: [PATCH] vfs_fruit: only do cross protocol locking on non-internal opens Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_fruit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 128ad4bd2273..cce530bbc976 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -6094,7 +6094,9 @@ static NTSTATUS fruit_create_file(vfs_handle_struct *handle, return status; } - if (config->locking == FRUIT_LOCKING_NETATALK) { + if ((config->locking == FRUIT_LOCKING_NETATALK) && + (fsp->op != NULL)) + { status = fruit_check_access( handle, *result, access_mask, -- 2.34.1