From: Arshan Khanifar Date: Tue, 6 Feb 2018 15:05:36 +0000 (-0500) Subject: flush pending chdirs prior to processing mtree files X-Git-Tag: v3.3.3~18^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed564397091bb97b999416ec364edd477634a72d;p=thirdparty%2Flibarchive.git flush pending chdirs prior to processing mtree files --- diff --git a/tar/write.c b/tar/write.c index 9c2456625..3cb1be55b 100644 --- a/tar/write.c +++ b/tar/write.c @@ -506,6 +506,7 @@ write_archive(struct archive *a, struct bsdtar *bsdtar) if (*arg != '/' && (arg[0] != '@' || arg[1] != '/')) do_chdir(bsdtar); /* Handle a deferred -C */ if (*arg == '@') { + do_chdir(bsdtar); /* Handle a deferred -C */ if (append_archive_filename(bsdtar, a, arg + 1) != 0) break;