]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
flush pending chdirs prior to processing mtree files
authorArshan Khanifar <arshankhanifar@gmail.com>
Tue, 6 Feb 2018 15:05:36 +0000 (10:05 -0500)
committerArshan Khanifar <arshankhanifar@gmail.com>
Tue, 6 Feb 2018 15:05:36 +0000 (10:05 -0500)
tar/write.c

index 9c2456625271c6019268b8fd2c6bd44390a25c60..3cb1be55be743bf6e31b2ddb86f5d5e425b2eadf 100644 (file)
@@ -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;