diff options
author | kientzle <kientzle@FreeBSD.org> | 2005-11-06 22:53:51 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2005-11-06 22:53:51 +0000 |
commit | 08de7f1aa66753c62e8a10848525b8de9892b5a6 (patch) | |
tree | cf5b788944378d481f270a9424d4455d0c64d112 /usr.bin/tar | |
parent | f3c8cac1a27e3d9dfa73221c2f4efe6a3d349d2c (diff) | |
download | FreeBSD-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.c | 2 |
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)); } |