]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/adouble/ad_open.c
Fix ressource fork refcounting
[netatalk.git] / 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;