1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:32:16 +00:00

ar only needs to support ar format.

This commit is contained in:
Tim Kientzle 2009-12-29 05:58:40 +00:00
parent 25557ee5f4
commit dc7c0661df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201166
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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 (;;) {