From 92447140f7f576082a430b9b3f848986556f5b0c Mon Sep 17 00:00:00 2001 From: lioux Date: Sat, 24 Aug 2002 20:04:17 +0000 Subject: Preserve suid/gid permissions when extracting packages remotelly fetched with -r option Reviewed by: will Approved by: will --- usr.sbin/pkg_install/lib/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/pkg_install') diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 9946529..7150458 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -222,7 +222,7 @@ fileGetURL(const char *base, const char *spec) dup2(pfd[0], 0); for (fd = getdtablesize() - 1; fd >= 3; --fd) close(fd); - execl("/usr/bin/tar", "tar", Verbose ? "-xzvf" : "-xzf", "-", + execl("/usr/bin/tar", "tar", Verbose ? "-xzpvf" : "-xzpf", "-", (char *)0); _exit(2); } -- cgit v1.1