Date: Sat, 7 May 2011 10:08:01 +0000 (UTC) From: Kai Wang <kaiw@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r221586 - stable/8/usr.bin/ar Message-ID: <201105071008.p47A81WF091855@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kaiw Date: Sat May 7 10:08:01 2011 New Revision: 221586 URL: http://svn.freebsd.org/changeset/base/221586 Log: MFC r201166 (kientzle): ar only needs to support ar format. Modified: stable/8/usr.bin/ar/acpyacc.y stable/8/usr.bin/ar/read.c Directory Properties: stable/8/usr.bin/ar/ (props changed) Modified: stable/8/usr.bin/ar/acpyacc.y ============================================================================== --- stable/8/usr.bin/ar/acpyacc.y Sat May 7 10:06:43 2011 (r221585) +++ stable/8/usr.bin/ar/acpyacc.y Sat May 7 10:08:01 2011 (r221586) @@ -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)); Modified: stable/8/usr.bin/ar/read.c ============================================================================== --- stable/8/usr.bin/ar/read.c Sat May 7 10:06:43 2011 (r221585) +++ stable/8/usr.bin/ar/read.c Sat May 7 10:08:01 2011 (r221586) @@ -88,7 +88,7 @@ read_archive(struct bsdar *bsdar, char m 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 (;;) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105071008.p47A81WF091855>