summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-08-24 20:04:17 +0000
committerlioux <lioux@FreeBSD.org>2002-08-24 20:04:17 +0000
commit92447140f7f576082a430b9b3f848986556f5b0c (patch)
tree3eb8b67162085bf55356a83ab506aa39f15ffcc0 /usr.sbin/pkg_install
parent650738429c3e7b69bcd7f750722da6a4d8c7d6fd (diff)
downloadFreeBSD-src-92447140f7f576082a430b9b3f848986556f5b0c.zip
FreeBSD-src-92447140f7f576082a430b9b3f848986556f5b0c.tar.gz
Preserve suid/gid permissions when extracting packages remotelly
fetched with -r option Reviewed by: will Approved by: will
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/lib/file.c2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud