summaryrefslogtreecommitdiffstats
path: root/usr.bin/ar/read.c
diff options
context:
space:
mode:
authorkaiw <kaiw@FreeBSD.org>2010-05-17 09:37:59 +0000
committerkaiw <kaiw@FreeBSD.org>2010-05-17 09:37:59 +0000
commite87f2d48bc38fef35b49a5ba9f33703473cee54a (patch)
treec1fbbf0def71cdcf6cf8e4112b0f5d65cb69f755 /usr.bin/ar/read.c
parentbd4ac448d72b03f76644e769f11ee45445c8ead7 (diff)
downloadFreeBSD-src-e87f2d48bc38fef35b49a5ba9f33703473cee54a.zip
FreeBSD-src-e87f2d48bc38fef35b49a5ba9f33703473cee54a.tar.gz
Removed ar(1)'s support for compressed archives. This change removes
ar(1)'s dependencies on compressor libraries -lz, -lbz2 and -llzma and fixes building HEAD on some versions of FreeBSD[78]. Option -j and -z is now accepted but ignored. Compressed ar(1) archives are not useful without a ld(1) that can read them. Also, the current ar(1) compression scheme prevents random access of archive members and needs to be redesigned anyway. Submitted by: kientzle (original patch) Reviewed by: delphij Discussed on: -current mailing list
Diffstat (limited to 'usr.bin/ar/read.c')
-rw-r--r--usr.bin/ar/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ar/read.c b/usr.bin/ar/read.c
index 37bd0a1..8df170d 100644
--- a/usr.bin/ar/read.c
+++ b/usr.bin/ar/read.c
@@ -87,7 +87,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_compression_none(a);
archive_read_support_format_ar(a);
AC(archive_read_open_file(a, bsdar->filename, DEF_BLKSZ));
OpenPOWER on IntegriCloud