Source-Changes-HG archive

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

[src/netbsd-1-4]: src/gnu/usr.bin/tar Pull up revision 1.7 (requested by hube...



details:   https://anonhg.NetBSD.org/src/rev/db34ed167be8
branches:  netbsd-1-4
changeset: 470196:db34ed167be8
user:      he <he%NetBSD.org@localhost>
date:      Sun Jan 23 13:43:17 2000 +0000

description:
Pull up revision 1.7 (requested by hubertf):
  Only skip some bytes if the associated object is not a directory.
  Needed for some tar files.  Fixes PR#9274.

diffstat:

 gnu/usr.bin/tar/list.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 309efd6271a0 -r db34ed167be8 gnu/usr.bin/tar/list.c
--- a/gnu/usr.bin/tar/list.c    Sun Jan 23 13:40:22 2000 +0000
+++ b/gnu/usr.bin/tar/list.c    Sun Jan 23 13:43:17 2000 +0000
@@ -18,7 +18,7 @@
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #ifndef lint
-static char rcsid[] = "$Id: list.c,v 1.5.4.1 1999/08/24 19:58:35 he Exp $";
+static char rcsid[] = "$Id: list.c,v 1.5.4.2 2000/01/23 13:43:17 he Exp $";
 #endif /* not lint */
 
 /*
@@ -291,7 +291,8 @@
     save_name = current_file_name;
   /* Skip to the next header on the archive */
 
-  skip_file ((long) hstat.st_size);
+  if (head->header.linkflag != LF_DIR)
+    skip_file ((long) hstat.st_size);
 
   if (f_multivol)
     save_name = 0;



Home | Main Index | Thread Index | Old Index