Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pkg_install/lib Address PR 28826 from Tyler Retzlaf...



details:   https://anonhg.NetBSD.org/src/rev/d7a0f96ec91f
branches:  trunk
changeset: 572507:d7a0f96ec91f
user:      agc <agc%NetBSD.org@localhost>
date:      Thu Jan 06 11:56:39 2005 +0000

description:
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.

diffstat:

 usr.sbin/pkg_install/lib/ftpio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r d939f3704c5a -r d7a0f96ec91f usr.sbin/pkg_install/lib/ftpio.c
--- a/usr.sbin/pkg_install/lib/ftpio.c  Thu Jan 06 11:52:44 2005 +0000
+++ b/usr.sbin/pkg_install/lib/ftpio.c  Thu Jan 06 11:56:39 2005 +0000
@@ -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 @@
                        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 : "",



Home | Main Index | Thread Index | Old Index