Source-Changes-HG archive

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

[src/netbsd-1-5]: src/usr.sbin/pkg_install/lib Pull up revisions 1.32-1.34 (r...



details:   https://anonhg.NetBSD.org/src/rev/aac727bacc30
branches:  netbsd-1-5
changeset: 492843:aac727bacc30
user:      he <he%NetBSD.org@localhost>
date:      Sat Feb 23 18:13:26 2002 +0000

description:
Pull up revisions 1.32-1.34 (requested by seb):
  Synchronize with recent developments:
   o Use full path name to tar; fixes PR#14072
   o Various internal cleanups, bugfixes, and API tweaks

diffstat:

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

diffs (43 lines):

diff -r 01ae4ac3c161 -r aac727bacc30 usr.sbin/pkg_install/lib/ftpio.c
--- a/usr.sbin/pkg_install/lib/ftpio.c  Sat Feb 23 18:12:45 2002 +0000
+++ b/usr.sbin/pkg_install/lib/ftpio.c  Sat Feb 23 18:13:26 2002 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: ftpio.c,v 1.20.2.11 2001/05/01 11:01:41 he Exp $       */
+/*     $NetBSD: ftpio.c,v 1.20.2.12 2002/02/23 18:13:26 he Exp $       */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ftpio.c,v 1.20.2.11 2001/05/01 11:01:41 he Exp $");
+__RCSID("$NetBSD: ftpio.c,v 1.20.2.12 2002/02/23 18:13:26 he Exp $");
 #endif
 
 /*
@@ -231,7 +231,7 @@
            if (expectstr) {
                    /* set "rc" to the FTP error code: */
                    if (expect(ftpio.answer, expectstr, &rc) == -1)
-                           rc = -1;    /* some error occured */
+                           rc = -1;    /* some error occurred */
            }
     } else {   
            if (Verbose)
@@ -570,8 +570,8 @@
                        
                        filename[strlen(filename)-1] = '\0';
 
-                       strip_txz(s_filename, filename);
-                       strip_txz(s_pkg, pkg);
+                       strip_txz(s_filename, NULL, filename);
+                       strip_txz(s_pkg, NULL, pkg);
                        
                        if (pmatch(s_pkg, s_filename)) {
                                matches++;
@@ -658,7 +658,7 @@
                        printf("unpackURL '%s' to '%s'\n", url, dir);
 
                /* yes, this is gross, but needed for borken ftp(1) */
-               (void) snprintf(cmd, sizeof(cmd), "get %s \"| ( cd %s ; gunzip 2>/dev/null | tar -%sx -f - | tee /dev/stderr )\"\n", pkg, dir, Verbose?"vv":"");
+               (void) snprintf(cmd, sizeof(cmd), "get %s \"| ( cd %s ; gunzip 2>/dev/null | " TAR_FULLPATHNAME " -%sx -f - | tee /dev/stderr )\"\n", pkg, dir, Verbose?"vv":"");
                rc = ftp_cmd(cmd, "\n(226|550).*\n");
                if (rc != 226) {
                        warnx("Cannot fetch file (%d!=226)!", rc);



Home | Main Index | Thread Index | Old Index