From: Ralph Boehme Date: Tue, 21 May 2019 09:40:33 +0000 (+0200) Subject: vfs_fruit: add a missing else X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=44d8568001c87d28962dfc4e3fde6d0f7f409997;hp=ad70c947c759aa0965ee57f973fb8dc1909e0e39;p=metze%2Fsamba%2Fwip.git vfs_fruit: add a missing else Luckily the missing else has the same control flow due to the previous if and else blocks calling return. 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 2f970bb2e116..6e909d7073d0 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -4102,7 +4102,7 @@ static int fruit_unlink(vfs_handle_struct *handle, return fruit_unlink_meta(handle, smb_fname); } else if (is_afpresource_stream(smb_fname)) { return fruit_unlink_rsrc(handle, smb_fname, false); - } if (is_ntfs_stream_smb_fname(smb_fname)) { + } else if (is_ntfs_stream_smb_fname(smb_fname)) { return SMB_VFS_NEXT_UNLINK(handle, smb_fname); }