summaryrefslogtreecommitdiff
path: root/tar/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'tar/read.c')
-rw-r--r--tar/read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tar/read.c b/tar/read.c
index ae58d027..70607720 100644
--- a/tar/read.c
+++ b/tar/read.c
@@ -180,7 +180,8 @@ read_archive(struct bsdtar *bsdtar, char mode, struct archive *writer)
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))
+ if (archive_read_open_filename(a, bsdtar->filename,
+ bsdtar->bytes_per_block))
lafe_errc(1, 0, "Error opening archive: %s",
archive_error_string(a));