summaryrefslogtreecommitdiff
path: root/tar
diff options
context:
space:
mode:
Diffstat (limited to 'tar')
-rw-r--r--tar/write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tar/write.c b/tar/write.c
index 9c245662..3cb1be55 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;