]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: skip Netatalk locking checks for path-ref fd's
authorRalph Boehme <slow@samba.org>
Sat, 1 Aug 2020 14:19:20 +0000 (16:19 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:30 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c

index dae9db5d423323e08ebcedbdebce78834eb6e128..6576ea1dbaa96a09a162db25a58211a62ea8c27b 100644 (file)
@@ -4014,7 +4014,8 @@ static NTSTATUS fruit_create_file(vfs_handle_struct *handle,
        }
 
        if ((config->locking == FRUIT_LOCKING_NETATALK) &&
-           (fsp->op != NULL))
+           (fsp->op != NULL) &&
+           !fsp->fsp_flags.is_pathref)
        {
                status = fruit_check_access(
                        handle, *result,