]> arthur.barton.de Git - netatalk.git/commitdiff
Permissions of ._ AppleDouble rfork after conversion from v2 to ea.
authorFrank Lahm <franklahm@googlemail.com>
Mon, 11 Mar 2013 16:19:28 +0000 (17:19 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Mon, 11 Mar 2013 16:19:28 +0000 (17:19 +0100)
Fixes bug #505.

NEWS
libatalk/adouble/ad_conv.c

diff --git a/NEWS b/NEWS
index 35f9ea2b041d81b3458ad03355d9110e49a53b59..5456a4112148df289ed0a9ab5fd5584b0cbb4827 100644 (file)
--- 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.
        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
 ================
 
 Changes in 3.0.2
 ================
index c68cad45c881aaef42b12fdaf514ee22c319a3ac..b1785c0163f30cf73eb3dde56794e4b6150e7d0e 100644 (file)
@@ -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);
         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:
     }
 
 EC_CLEANUP: