diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 13033096dc9..ecc095b4306 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -2047,7 +2047,7 @@ static int fruit_unlink_rsrc_stream(vfs_handle_struct *handle, size = full_fname->st.st_ex_size; TALLOC_FREE(full_fname); - if (size > 0) { + if (size == 0) { /* OS X ignores resource fork stream delete requests */ return 0; } @@ -2098,7 +2098,7 @@ static int fruit_unlink_rsrc_adouble(vfs_handle_struct *handle, * deletion doesn't remove the resourcefork stream. */ - if (ad_getentrylen(ad, ADEID_RFORK) > 0) { + if (ad_getentrylen(ad, ADEID_RFORK) == 0) { /* OS X ignores resource fork stream delete requests */ TALLOC_FREE(ad); return 0;