Do not use deprecated functions from libarchive
This commit is contained in:
parent
c2e38b5216
commit
ff75c36ae1
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user