From 8813338fe4a13634917fe6426ae97f5b14df54e2 Mon Sep 17 00:00:00 2001 From: Frank Lahm Date: Mon, 11 Mar 2013 17:19:28 +0100 Subject: [PATCH] Permissions of ._ AppleDouble rfork after conversion from v2 to ea. Fixes bug #505. --- NEWS | 3 +++ libatalk/adouble/ad_conv.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 35f9ea2b..5456a411 100644 --- a/NEWS +++ b/NEWS @@ -32,6 +32,9 @@ Changes in 3.0.3 Fixes bug #500. * FIX: Error messages when mounting read-only filesystems. Fixes bug #504. +* FIX: Permissions of ._ AppleDouble ressource fork after conversion + from v2 to ea. + Fixes bug #505. Changes in 3.0.2 ================ diff --git a/libatalk/adouble/ad_conv.c b/libatalk/adouble/ad_conv.c index c68cad45..b1785c01 100644 --- a/libatalk/adouble/ad_conv.c +++ b/libatalk/adouble/ad_conv.c @@ -157,6 +157,8 @@ static int ad_conv_v22ea_rf(const char *path, const struct stat *sp, const struc EC_ZERO_LOG( copy_fork(ADEID_RFORK, &adea, &adv2) ); adea.ad_rlen = adv2.ad_rlen; ad_flush(&adea); + fchmod(ad_reso_fileno(&adea), sp->st_mode & 0666); + fchown(ad_reso_fileno(&adea), sp->st_uid, sp->st_gid); } EC_CLEANUP: -- 2.39.2