X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=bin%2Fad%2Fad_cp.c;h=b0723b021976d69f4a778fdbeef3006d4c3489ea;hb=6d60f95c388da5f8f901d67e0018cf4896e6c6dc;hp=ac0a737a0b5a12cfcc3477ace70f282ba7f5a3e4;hpb=6145c1c31a1a2494fe6ad7ca65f9c2a63a05b07d;p=netatalk.git diff --git a/bin/ad/ad_cp.c b/bin/ad/ad_cp.c index ac0a737a..b0723b02 100644 --- a/bin/ad/ad_cp.c +++ b/bin/ad/ad_cp.c @@ -544,7 +544,7 @@ static int copy(const char *path, break; } ad_init(&ad, dvolume.volinfo.v_adouble, dvolume.volinfo.v_ad_options); - if (ad_open_metadata(to.p_path, ADFLAGS_DIR, O_RDWR | O_CREAT, &ad) != 0) { + if (ad_open(&ad, to.p_path, ADFLAGS_HF | ADFLAGS_DIR, O_RDWR | O_CREAT, 0666) != 0) { ERROR("Error opening adouble for: %s", to.p_path); } ad_setid( &ad, st.st_dev, st.st_ino, did, pdid, dvolume.db_stamp); @@ -611,7 +611,7 @@ static int copy(const char *path, break; } ad_init(&ad, dvolume.volinfo.v_adouble, dvolume.volinfo.v_ad_options); - if (ad_open_metadata(to.p_path, 0, O_RDWR | O_CREAT, &ad) != 0) { + if (ad_open(&ad, to.p_path, ADFLAGS_HF, O_RDWR | O_CREAT) != 0) { ERROR("Error opening adouble for: %s", to.p_path); } ad_setid( &ad, st.st_dev, st.st_ino, cnid, did, dvolume.db_stamp);