diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2007-03-17 16:17:14 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2007-03-17 16:17:14 +0000 |
| commit | 486641fcc5294109cc00141d18c468f5e2ad304c (patch) | |
| tree | 48de37776737a768b1dcc5b38a5e9aff602fdbed /usr.bin/tar | |
| parent | f2d18f3112a1706e0908631456547f58b5ea3343 (diff) | |
Notes
Diffstat (limited to 'usr.bin/tar')
| -rw-r--r-- | usr.bin/tar/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c index 735343959fa4..476730d335d2 100644 --- a/usr.bin/tar/write.c +++ b/usr.bin/tar/write.c @@ -450,7 +450,7 @@ write_archive(struct archive *a, struct bsdtar *bsdtar) } set_chdir(bsdtar, arg); } else { - if (*arg != '/' || (arg[0] == '@' && arg[1] != '/')) + if (*arg != '/' && (arg[0] != '@' || arg[1] != '/')) do_chdir(bsdtar); /* Handle a deferred -C */ if (*arg == '@') { if (append_archive(bsdtar, a, arg + 1) != 0) |
