vfs_fruit: remove check for number of xattrs from ad_convert_xattr
[samba.git] / source3 / modules / vfs_fruit.c
index eb615ba7c88dee67e764df8cfe36582fc41b9bca..a3dabcd31c1edea0462cc758af31bf73dc849ea4 100644 (file)
@@ -1010,7 +1010,7 @@ static bool ad_convert_xattr(struct adouble *ad,
 
        *converted_xattr = false;
 
-       if (ad->adx_header.adx_num_attrs == 0) {
+       if (ad_getentrylen(ad, ADEID_FINDERI) == ADEDLEN_FINDERI) {
                return true;
        }
 
@@ -1296,10 +1296,6 @@ static int ad_convert(struct adouble *ad,
        bool ok;
        bool converted_xattr = false;
 
-       if (ad_getentrylen(ad, ADEID_FINDERI) == ADEDLEN_FINDERI) {
-               return 0;
-       }
-
        ok = ad_convert_xattr(ad, smb_fname, &converted_xattr);
        if (!ok) {
                return -1;