Do not use deprecated functions from libarchive

This commit is contained in:
Baptiste Daroussin 2013-02-20 22:51:42 +00:00
parent c2e38b5216
commit ff75c36ae1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247060

View File

@ -212,7 +212,7 @@ extract_pkg_static(int fd, char *p, int sz)
warn("archive_read_new");
return (ret);
}
archive_read_support_compression_all(a);
archive_read_support_filter_all(a);
archive_read_support_format_tar(a);
if (lseek(fd, 0, 0) == -1) {
@ -247,7 +247,7 @@ extract_pkg_static(int fd, char *p, int sz)
warnx("fail to extract pkg-static");
cleanup:
archive_read_finish(a);
archive_read_free(a);
return (ret);
}