diff options
author | bapt <bapt@FreeBSD.org> | 2013-02-20 22:51:42 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-02-20 22:51:42 +0000 |
commit | f4e406048b9006b72306991353ec775e26cdd5a9 (patch) | |
tree | 42c65a1a1bfb55b8cdf7c845a878c29d42d57045 /usr.sbin/pkg | |
parent | c6a6844649b4e258dc47b4dedf065e2625691784 (diff) | |
download | FreeBSD-src-f4e406048b9006b72306991353ec775e26cdd5a9.zip FreeBSD-src-f4e406048b9006b72306991353ec775e26cdd5a9.tar.gz |
Do not use deprecated functions from libarchive
Diffstat (limited to 'usr.sbin/pkg')
-rw-r--r-- | usr.sbin/pkg/pkg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index a3c3fec..32591f3 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -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); } |