Source-Changes-HG archive

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

[src/netbsd-3]: src/bin/pax Pull up following revision(s) (requested by chris...



details:   https://anonhg.NetBSD.org/src/rev/171b8e5d5e32
branches:  netbsd-3
changeset: 577476:171b8e5d5e32
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Nov 09 16:16:33 2005 +0000

description:
Pull up following revision(s) (requested by christos in ticket #946):
        bin/pax/tar.c: revision 1.62
PR/20071: Perry Metzger: --extract handling is broken. This patch fixes
Perry's example.

diffstat:

 bin/pax/tar.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 6f755dce97e4 -r 171b8e5d5e32 bin/pax/tar.c
--- a/bin/pax/tar.c     Wed Nov 09 14:51:24 2005 +0000
+++ b/bin/pax/tar.c     Wed Nov 09 16:16:33 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tar.c,v 1.61 2005/02/20 07:35:47 christos Exp $        */
+/*     $NetBSD: tar.c,v 1.61.2.1 2005/11/09 16:16:33 tron Exp $        */
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)tar.c      8.2 (Berkeley) 4/18/94";
 #else
-__RCSID("$NetBSD: tar.c,v 1.61 2005/02/20 07:35:47 christos Exp $");
+__RCSID("$NetBSD: tar.c,v 1.61.2.1 2005/11/09 16:16:33 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -1318,11 +1318,10 @@
        char sbuf[MAXPATHLEN * 2 + 1];
        /* + / + // + .*""/\/ + \/.* */
        char rabuf[MAXPATHLEN * 2 + 1 + 1 + 2 + 4 + 4];
-       int i, j;
+       int i, j = 0;
 
        if (line[len - 1] == '\n')
                len--;
-       strncpy(sbuf, ".*" "\\/", j = 4);
        for (i = 0; i < len; i++) {
                /*
                 * convert glob to regexp, escaping everything



Home | Main Index | Thread Index | Old Index