diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-12-29 05:58:40 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-12-29 05:58:40 +0000 |
commit | 54b5963bf87d3af42eeb59afaf5df6b4ab06f12d (patch) | |
tree | 023efb3892ab9cf9648fb0a3924463782136ad19 | |
parent | 9f1cacc2a4e4ab5b3bdd05679a9a1d8efad3d94e (diff) | |
download | FreeBSD-src-54b5963bf87d3af42eeb59afaf5df6b4ab06f12d.zip FreeBSD-src-54b5963bf87d3af42eeb59afaf5df6b4ab06f12d.tar.gz |
ar only needs to support ar format.
-rw-r--r-- | usr.bin/ar/acpyacc.y | 2 | ||||
-rw-r--r-- | usr.bin/ar/read.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ar/acpyacc.y b/usr.bin/ar/acpyacc.y index bc25b62..686bbe2 100644 --- a/usr.bin/ar/acpyacc.y +++ b/usr.bin/ar/acpyacc.y @@ -251,7 +251,7 @@ arscp_open(char *fname) if ((a = archive_read_new()) == NULL) bsdar_errc(bsdar, EX_SOFTWARE, 0, "archive_read_new failed"); archive_read_support_compression_all(a); - archive_read_support_format_all(a); + archive_read_support_format_ar(a); AC(archive_read_open_file(a, fname, DEF_BLKSZ)); if ((r = archive_read_next_header(a, &entry))) bsdar_warnc(bsdar, 0, "%s", archive_error_string(a)); diff --git a/usr.bin/ar/read.c b/usr.bin/ar/read.c index a9e2ed1..37bd0a1 100644 --- a/usr.bin/ar/read.c +++ b/usr.bin/ar/read.c @@ -88,7 +88,7 @@ read_archive(struct bsdar *bsdar, char mode) if ((a = archive_read_new()) == NULL) bsdar_errc(bsdar, EX_SOFTWARE, 0, "archive_read_new failed"); archive_read_support_compression_all(a); - archive_read_support_format_all(a); + archive_read_support_format_ar(a); AC(archive_read_open_file(a, bsdar->filename, DEF_BLKSZ)); for (;;) { |