]> arthur.barton.de Git - netatalk.git/commitdiff
Fix ressource fork refcounting
authorRalph Boehme <sloowfranklin@gmail.com>
Tue, 19 Mar 2013 12:15:10 +0000 (13:15 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Tue, 19 Mar 2013 12:27:33 +0000 (13:27 +0100)
libatalk/adouble/ad_open.c

index 4e1253d1febf6e70b8cef6576b54b98015385eb9..e4af84d8058ad94d2558290d170dc9200ae14497 100644 (file)
@@ -1242,6 +1242,7 @@ static int ad_open_rf_ea(const char *path, int adflags, int mode, struct adouble
             EC_FAIL;
         }
         ad->ad_rfp->adf_flags &= ~( O_TRUNC | O_CREAT );
+        ad->ad_reso_refcount++;
         ad->ad_rfp->adf_refcount++;
         EC_NEG1_LOG( ad->ad_rlen = ad_reso_size(path, adflags, ad));
         goto EC_CLEANUP;