svn commit: r247060 - head/usr.sbin/pkg

Baptiste Daroussin bapt at FreeBSD.org
Wed Feb 20 22:51:43 UTC 2013


Author: bapt
Date: Wed Feb 20 22:51:42 2013
New Revision: 247060
URL: http://svnweb.freebsd.org/changeset/base/247060

Log:
  Do not use deprecated functions from libarchive

Modified:
  head/usr.sbin/pkg/pkg.c

Modified: head/usr.sbin/pkg/pkg.c
==============================================================================
--- head/usr.sbin/pkg/pkg.c	Wed Feb 20 22:20:49 2013	(r247059)
+++ head/usr.sbin/pkg/pkg.c	Wed Feb 20 22:51:42 2013	(r247060)
@@ -212,7 +212,7 @@ extract_pkg_static(int fd, char *p, int 
 		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 
 		warnx("fail to extract pkg-static");
 
 cleanup:
-	archive_read_finish(a);
+	archive_read_free(a);
 	return (ret);
 
 }


More information about the svn-src-head mailing list