Address PR 28826 from Tyler Retzlaff - when extracting files from a binary
package addition by ftp, preserve the modes of the entries in the binary package.
This commit is contained in:
parent
f80647ef1e
commit
524f4f2bcf
|
@ -1,8 +1,8 @@
|
|||
/* $NetBSD: ftpio.c,v 1.65 2004/12/29 11:35:02 agc Exp $ */
|
||||
/* $NetBSD: ftpio.c,v 1.66 2005/01/06 11:56:39 agc Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: ftpio.c,v 1.65 2004/12/29 11:35:02 agc Exp $");
|
||||
__RCSID("$NetBSD: ftpio.c,v 1.66 2005/01/06 11:56:39 agc Exp $");
|
||||
#endif
|
||||
|
||||
/*-
|
||||
|
@ -1195,7 +1195,7 @@ unpackURL(const char *url, const char *dir)
|
|||
errx(EXIT_FAILURE, "don't know how to decompress %s, sorry", pkg);
|
||||
|
||||
/* yes, this is gross, but needed for borken ftp(1) */
|
||||
(void) snprintf(cmd, sizeof(cmd), "get %s \"| ( cd %s; " TAR_CMD " %s %s -%sx -f - | tee /dev/stderr )\"\n",
|
||||
(void) snprintf(cmd, sizeof(cmd), "get %s \"| ( cd %s; " TAR_CMD " %s %s -%sxp -f - | tee /dev/stderr )\"\n",
|
||||
pkg, dir,
|
||||
decompress_cmd != NULL ? "--use-compress-program" : "",
|
||||
decompress_cmd != NULL ? decompress_cmd : "",
|
||||
|
|
Loading…
Reference in New Issue