summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-05-21 11:40:33 +0200
committerKarolin Seeger <kseeger@samba.org>2019-06-21 07:56:19 +0000
commit1542bb051bef293abdbbfe2b73b373ca11b8fcf8 (patch)
tree91f2af33f90271d4eca6736b3d7e7f28f06fec4f
parent18c45bb3440d5e54c2d4380a94317f0ac40e67b2 (diff)
downloadsamba-1542bb051bef293abdbbfe2b73b373ca11b8fcf8.tar.gz
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 <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 44d8568001c87d28962dfc4e3fde6d0f7f409997)
-rw-r--r--source3/modules/vfs_fruit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c
index 0e36c285308..e1d0d5ecc66 100644
--- a/source3/modules/vfs_fruit.c
+++ b/source3/modules/vfs_fruit.c
@@ -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);
}