From: Ralph Boehme Date: Thu, 23 May 2019 14:22:39 +0000 (+0200) Subject: vfs_fruit: only do cross protocol locking on non-internal opens X-Git-Tag: ldb-2.0.5~536 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5f7d1e9bf7e39933ccf7c874e682f9df80a6fec;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 128ad4bd227..cce530bbc97 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,