Skip headers with empty filenames, rather than stopping.
authorMatt Kraai <kraai@debian.org>
Tue, 1 May 2001 21:12:31 +0000 (21:12 -0000)
committerMatt Kraai <kraai@debian.org>
Tue, 1 May 2001 21:12:31 +0000 (21:12 -0000)
archival/tar.c
tar.c

index 4bf8004eafad45f56f9fd5b79e951646ac32ac4f..eb085c770ded64efa645219ff971b72bdfa49285 100644 (file)
@@ -595,7 +595,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag,
                        }
                }
                if ( *(header.name) == '\0' )
-                               goto endgame;
+                       continue;
                header.tarFd = tarFd;
 
                /* Skip funky extra GNU headers that precede long files */
diff --git a/tar.c b/tar.c
index 4bf8004eafad45f56f9fd5b79e951646ac32ac4f..eb085c770ded64efa645219ff971b72bdfa49285 100644 (file)
--- a/tar.c
+++ b/tar.c
@@ -595,7 +595,7 @@ static int readTarFile(int tarFd, int extractFlag, int listFlag,
                        }
                }
                if ( *(header.name) == '\0' )
-                               goto endgame;
+                       continue;
                header.tarFd = tarFd;
 
                /* Skip funky extra GNU headers that precede long files */