]> arthur.barton.de Git - netatalk.git/commitdiff
Can't set Finder label on symlinked folder with "follow symlinks = yes"
authorRalph Boehme <sloowfranklin@gmail.com>
Thu, 21 Mar 2013 16:21:59 +0000 (17:21 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Thu, 21 Mar 2013 16:21:59 +0000 (17:21 +0100)
Fixes bug #508.

NEWS
libatalk/adouble/ad_open.c

diff --git a/NEWS b/NEWS
index 1f9f31c4691e6df5fc4a8d2858efb0663ee4666c..736a337539da86c538a3f4c49785255a1da818cd 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -39,6 +39,8 @@ Changes in 3.0.3
        From FR #75.
 * UPD: Increase IO size when sendfile() is not used.
        From FR #76.
+* FIX: Can't set Finder label on symlinked folder with "follow symlinks = yes".
+       Fixes bug #508.
 
 Changes in 3.0.2
 ================
index e4af84d8058ad94d2558290d170dc9200ae14497..a2f6f00e1ca73b027d0b9d8d074058f91b1deb5c 100644 (file)
@@ -624,7 +624,7 @@ static int ad_header_read_ea(const char *path, struct adouble *ad, const struct
     if (ad_meta_fileno(ad) != -1)
         header_len = sys_fgetxattr(ad_meta_fileno(ad), AD_EA_META, ad->ad_data, AD_DATASZ_EA);
     else
-        header_len = sys_lgetxattr(path, AD_EA_META, ad->ad_data, AD_DATASZ_EA);
+        header_len = sys_getxattr(path, AD_EA_META, ad->ad_data, AD_DATASZ_EA);
      if (header_len < 1) {
         LOG(log_debug, logtype_ad, "ad_header_read_ea: %s", strerror(errno));
         return -1;