diff options
Diffstat (limited to 'tar/write.c')
-rw-r--r-- | tar/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/write.c b/tar/write.c index 9c2456625271..e15cc06ccfc4 100644 --- a/tar/write.c +++ b/tar/write.c @@ -503,7 +503,7 @@ write_archive(struct archive *a, struct bsdtar *bsdtar) } set_chdir(bsdtar, arg); } else { - if (*arg != '/' && (arg[0] != '@' || arg[1] != '/')) + if (*arg != '/') do_chdir(bsdtar); /* Handle a deferred -C */ if (*arg == '@') { if (append_archive_filename(bsdtar, a, |