Source-Changes-HG archive

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

[src/netbsd-1-4]: src/bin/pax pull up rev 1.15 from trunk (kleink)



details:   https://anonhg.NetBSD.org/src/rev/a6b90d299593
branches:  netbsd-1-4
changeset: 469232:a6b90d299593
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Aug 20 04:46:10 1999 +0000

description:
pull up rev 1.15 from trunk (kleink)

diffstat:

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

diffs (36 lines):

diff -r 36ed126aa0f3 -r a6b90d299593 bin/pax/tar.c
--- a/bin/pax/tar.c     Mon Aug 09 19:25:51 1999 +0000
+++ b/bin/pax/tar.c     Fri Aug 20 04:46:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tar.c,v 1.14 1999/01/21 08:46:06 mycroft Exp $ */
+/*     $NetBSD: tar.c,v 1.14.2.1 1999/08/20 04:46:10 cgd 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.14 1999/01/21 08:46:06 mycroft Exp $");
+__RCSID("$NetBSD: tar.c,v 1.14.2.1 1999/08/20 04:46:10 cgd Exp $");
 #endif
 #endif /* not lint */
 
@@ -514,13 +514,16 @@
                break;
        case AREGTYPE:
        case REGTYPE:
+       case DIRTYPE:   /* see below */
        default:
                /*
                 * If we have a trailing / this is a directory and NOT a file.
+                * Note: V7 tar doesn't actually have DIRTYPE, but it was
+                * reported that V7 archives using USTAR directories do exist.
                 */
                arcn->ln_name[0] = '\0';
                arcn->ln_nlen = 0;
-               if (*pt == '/') {
+               if (*pt == '/' || hd->linkflag == DIRTYPE) {
                        /*
                         * it is a directory, set the mode for -v printing
                         */



Home | Main Index | Thread Index | Old Index