aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce A. Mah <bmah@FreeBSD.org>2002-11-14 21:01:17 +0000
committerBruce A. Mah <bmah@FreeBSD.org>2002-11-14 21:01:17 +0000
commit2930533d3f558f3c8cb0535a04b56b605f7d3a5a (patch)
tree0da5891df05e5ed7b43ad8e170d9231fcec1a024
parent26532c36967953746f91f672d88a6b9ed8b1895e (diff)
Notes
-rw-r--r--usr.sbin/pkg_install/lib/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c
index 3ed4b385f059..2ad1bc20e449 100644
--- a/usr.sbin/pkg_install/lib/file.c
+++ b/usr.sbin/pkg_install/lib/file.c
@@ -348,7 +348,8 @@ unpack(const char *pkg, const char *flist)
}
}
else
- strcpy(args, "-z");
+ /* XXX: need to handle .tgz also */
+ strcpy(args, "-j");
strcat(args, " -xpf");
if (vsystem("tar %s '%s' %s", args, pkg, flist ? flist : "")) {
warnx("tar extract of %s failed!", pkg);