vfs_fruit: ignore AppleDouble files in fruit_unlink()
[metze/samba/wip.git] / source3 / modules / vfs_fruit.c
index 6e909d7073d04779662da96ad79c6538003bf7fa..2bd4fbadf37af4ea6deb9b07c074682f40389c5b 100644 (file)
@@ -4104,6 +4104,8 @@ static int fruit_unlink(vfs_handle_struct *handle,
                return fruit_unlink_rsrc(handle, smb_fname, false);
        } else if (is_ntfs_stream_smb_fname(smb_fname)) {
                return SMB_VFS_NEXT_UNLINK(handle, smb_fname);
+       } else if (is_adouble_file(smb_fname->base_name)) {
+               return SMB_VFS_NEXT_UNLINK(handle, smb_fname);
        }
 
        /*