X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=bin%2Fad%2Fad_mv.c;h=156d648b004a5d2fe0f26a6a30ef1b95b4378651;hb=6d60f95c388da5f8f901d67e0018cf4896e6c6dc;hp=4d23183ae13865c3c59a8298cde36e5cedbfeb91;hpb=af898e14ed8928adb6a5bedcd21d4e2731860eaa;p=netatalk.git diff --git a/bin/ad/ad_mv.c b/bin/ad/ad_mv.c index 4d23183a..156d648b 100644 --- a/bin/ad/ad_mv.c +++ b/bin/ad/ad_mv.c @@ -374,7 +374,7 @@ static int do_move(const char *from, const char *to) struct adouble ad; ad_init(&ad, dvolume.volinfo.v_adouble, dvolume.volinfo.v_ad_options); - if (ad_open_metadata(to, S_ISDIR(sb.st_mode) ? ADFLAGS_DIR : 0, O_RDWR, &ad) != 0) { + if (ad_open(&ad, to, S_ISDIR(sb.st_mode) ? (ADFLAGS_DIR | ADFLAGS_HF) : ADFLAGS_HF, O_RDWR) != 0) { SLOG("Error opening adouble for: %s", to); return 1; }