summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2005-11-06 22:53:51 +0000
committerkientzle <kientzle@FreeBSD.org>2005-11-06 22:53:51 +0000
commit08de7f1aa66753c62e8a10848525b8de9892b5a6 (patch)
treecf5b788944378d481f270a9424d4455d0c64d112 /usr.bin/tar
parentf3c8cac1a27e3d9dfa73221c2f4efe6a3d349d2c (diff)
downloadFreeBSD-src-08de7f1aa66753c62e8a10848525b8de9892b5a6.zip
FreeBSD-src-08de7f1aa66753c62e8a10848525b8de9892b5a6.tar.gz
Edit pathnames for -x but not for -t. Otherwise, people get confused
when list the archive contents, then try to extract selected files (file selection always works against unedited pathnames). With this change, -t always shows the pathnames as they appear in the archive. Thanks to: Robert Watson
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c
index e283ebe..8ce18a7 100644
--- a/usr.bin/tar/write.c
+++ b/usr.bin/tar/write.c
@@ -299,7 +299,7 @@ tar_mode_u(struct bsdtar *bsdtar)
if (archive_read_open_fd(a, bsdtar->fd,
bsdtar->bytes_per_block != 0 ? bsdtar->bytes_per_block :
DEFAULT_BYTES_PER_BLOCK) != ARCHIVE_OK) {
- bsdtar_errc(bsdtar, 1, archive_errno(a),
+ bsdtar_errc(bsdtar, 1, 0,
"Can't open %s: %s", bsdtar->filename,
archive_error_string(a));
}
OpenPOWER on IntegriCloud