summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorPeter Stromberg <wilfried@cvs.openbsd.org>2001-03-11 13:22:32 +0000
committerPeter Stromberg <wilfried@cvs.openbsd.org>2001-03-11 13:22:32 +0000
commit10bde171ba2d0769fb14e858fcf737690ccd9002 (patch)
tree339b72151b0f86d45e6fcb37480d4ce31bfbaf97 /usr.sbin/pkg_install
parent2cd2e328e0c47a0061b2453a00881e5aea7c81ea (diff)
add p-flag to tar so that uids/gids and
file modes are preserved on ftp/http installs
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/lib/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c
index c3288081af0..fc22e9dbbf6 100644
--- a/usr.sbin/pkg_install/lib/file.c
+++ b/usr.sbin/pkg_install/lib/file.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: file.c,v 1.12 2000/05/12 06:06:26 deraadt Exp $ */
+/* $OpenBSD: file.c,v 1.13 2001/03/11 13:22:31 wilfried Exp $ */
#ifndef lint
-static const char *rcsid = "$OpenBSD: file.c,v 1.12 2000/05/12 06:06:26 deraadt Exp $";
+static const char *rcsid = "$OpenBSD: file.c,v 1.13 2001/03/11 13:22:31 wilfried Exp $";
#endif
/*
@@ -342,7 +342,7 @@ fileGetURL(char *base, char *spec)
tpid = fork();
if (!tpid) {
dup2(fileno(ftp), 0);
- i = execl("/bin/tar", "tar", Verbose ? "-xzvf" : "-xzf", "-", 0);
+ i = execl("/bin/tar", "tar", Verbose ? "-xpzvf" : "-xpzf", "-", 0);
exit(i);
}
else {