summaryrefslogtreecommitdiff
path: root/tar.c
diff options
context:
space:
mode:
authorMatt Kraai2001-05-01 21:12:31 +0000
committerMatt Kraai2001-05-01 21:12:31 +0000
commite0244b06428c80b80719957d28a1234cc84ad0b4 (patch)
treeddccbd20b6a4da821687e119f9876ce219573941 /tar.c
parentb9f5b823399c8d5d88f2976726e3fbe9cba157a3 (diff)
downloadbusybox-e0244b06428c80b80719957d28a1234cc84ad0b4.zip
busybox-e0244b06428c80b80719957d28a1234cc84ad0b4.tar.gz
Skip headers with empty filenames, rather than stopping.
Diffstat (limited to 'tar.c')
-rw-r--r--tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tar.c b/tar.c
index 4bf8004..eb085c7 100644
--- 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 */