]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: add a missing else
authorRalph Boehme <slow@samba.org>
Tue, 21 May 2019 09:40:33 +0000 (11:40 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Jun 2019 07:56:19 +0000 (07:56 +0000)
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 44d8568001c87d28962dfc4e3fde6d0f7f409997)

source3/modules/vfs_fruit.c

index 0e36c2853087d0298c1dfb381fa8fab9d91fc50a..e1d0d5ecc66ad67a9b4bfaee01204a467d5494ea 100644 (file)
@@ -4079,7 +4079,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);
        }