diff options
author | lioux <lioux@FreeBSD.org> | 2002-08-24 20:04:17 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-08-24 20:04:17 +0000 |
commit | 92447140f7f576082a430b9b3f848986556f5b0c (patch) | |
tree | 3eb8b67162085bf55356a83ab506aa39f15ffcc0 /usr.sbin/pkg_install/lib | |
parent | 650738429c3e7b69bcd7f750722da6a4d8c7d6fd (diff) | |
download | FreeBSD-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/lib')
-rw-r--r-- | usr.sbin/pkg_install/lib/file.c | 2 |
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); } |