Preserve suid/gid permissions when extracting packages remotelly

fetched with -r option

Reviewed by:	will
Approved by:	will
This commit is contained in:
lioux 2002-08-24 20:04:17 +00:00
parent 650738429c
commit 92447140f7

View File

@ -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);
}