summaryrefslogtreecommitdiff
path: root/tar/read.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2010-06-26 13:18:30 -0400
committerTim Kientzle <kientzle@gmail.com>2010-06-26 13:18:30 -0400
commite8f0b5d1d07784f40977862b040765a57dc45d7a (patch)
treeec73035b27a4d588a506c271cd669da707843b71 /tar/read.c
parent288425caacac14936649277cfee9c8fcf669c722 (diff)
downloadlibarchive-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tar/read.c b/tar/read.c
index be914233..20c0b56e 100644
--- a/tar/read.c
+++ b/tar/read.c
@@ -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));