diff options
author | Tim Kientzle <kientzle@gmail.com> | 2010-06-26 13:18:30 -0400 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2010-06-26 13:18:30 -0400 |
commit | e8f0b5d1d07784f40977862b040765a57dc45d7a (patch) | |
tree | ec73035b27a4d588a506c271cd669da707843b71 /tar/read.c | |
parent | 288425caacac14936649277cfee9c8fcf669c722 (diff) | |
download | libarchive-e8f0b5d1d07784f40977862b040765a57dc45d7a.tar.gz |
Use -b setting when interpolating archives.
Simplify the handling of -b values by setting
a default early and then just using the value
instead of duplicating the logic.
SVN-Revision: 2503
Diffstat (limited to 'tar/read.c')
-rw-r--r-- | tar/read.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -161,9 +161,7 @@ read_archive(struct bsdtar *bsdtar, char mode) archive_read_support_format_all(a); if (ARCHIVE_OK != archive_read_set_options(a, bsdtar->option_options)) lafe_errc(1, 0, "%s", archive_error_string(a)); - if (archive_read_open_file(a, bsdtar->filename, - bsdtar->bytes_per_block != 0 ? bsdtar->bytes_per_block : - DEFAULT_BYTES_PER_BLOCK)) + if (archive_read_open_file(a, bsdtar->filename, bsdtar->bytes_per_block)) lafe_errc(1, 0, "Error opening archive: %s", archive_error_string(a)); |