From ed564397091bb97b999416ec364edd477634a72d Mon Sep 17 00:00:00 2001 From: Arshan Khanifar Date: Tue, 6 Feb 2018 10:05:36 -0500 Subject: [PATCH] flush pending chdirs prior to processing mtree files --- tar/write.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2