svn commit: trunk/busybox/archival/libunarchive

vda at busybox.net vda at busybox.net
Tue Apr 29 04:12:58 UTC 2008


Author: vda
Date: 2008-04-28 21:12:58 -0700 (Mon, 28 Apr 2008)
New Revision: 21889

Log:
tar: fix obscure case when name is "" and prefix is not ""



Modified:
   trunk/busybox/archival/libunarchive/get_header_tar.c


Changeset:
Modified: trunk/busybox/archival/libunarchive/get_header_tar.c
===================================================================
--- trunk/busybox/archival/libunarchive/get_header_tar.c	2008-04-29 03:54:16 UTC (rev 21888)
+++ trunk/busybox/archival/libunarchive/get_header_tar.c	2008-04-29 04:12:58 UTC (rev 21889)
@@ -112,7 +112,7 @@
 	archive_handle->offset += 512;
 
 	/* If there is no filename its an empty header */
-	if (tar.name[0] == 0) {
+	if (tar.name[0] == 0 && tar.prefix[0] == 0) {
 		if (end) {
 			/* This is the second consecutive empty header! End of archive!
 			 * Read until the end to empty the pipe from gz or bz2




More information about the busybox-cvs mailing list