From c00bb5bf3000d12310dd6d7c63ea20944de033bf Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 21 Mar 2013 17:21:59 +0100 Subject: [PATCH] Can't set Finder label on symlinked folder with "follow symlinks = yes" Fixes bug #508. --- NEWS | 2 ++ libatalk/adouble/ad_open.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 1f9f31c4..736a3375 100644 --- 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 ================ diff --git a/libatalk/adouble/ad_open.c b/libatalk/adouble/ad_open.c index e4af84d8..a2f6f00e 100644 --- a/libatalk/adouble/ad_open.c +++ b/libatalk/adouble/ad_open.c @@ -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; -- 2.39.2