svn commit: trunk/busybox/archival/libunarchive

landley at busybox.net landley at busybox.net
Thu Jul 6 20:30:21 UTC 2006


Author: landley
Date: 2006-07-06 13:30:19 -0700 (Thu, 06 Jul 2006)
New Revision: 15660

Log:
Fix tar so it can extract git-generated tarballs, based on a suggestion
from Erik Frederiksen.


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	2006-07-06 20:02:47 UTC (rev 15659)
+++ trunk/busybox/archival/libunarchive/get_header_tar.c	2006-07-06 20:30:19 UTC (rev 15660)
@@ -137,10 +137,6 @@
 	case '1':
 		file_header->mode |= S_IFREG;
 		break;
-	case 'x':
-	case 'g':
-		bb_error_msg_and_die("pax is not tar");
-		break;
 	case '7':
 		/* Reserved for high performance files, treat as normal file */
 	case 0:
@@ -188,8 +184,11 @@
 	case 'N':	/* Old GNU for names > 100 characters */
 	case 'S':	/* Sparse file */
 	case 'V':	/* Volume header */
-		bb_error_msg("Ignoring GNU extension type %c", tar.formated.typeflag);
 #endif
+	case 'g':	/* pax global header */
+	case 'x':	/* pax extended header */
+		bb_error_msg("Ignoring extension type %c", tar.formated.typeflag);
+		break;
 	default:
 		bb_error_msg("Unknown typeflag: 0x%x", tar.formated.typeflag);
 	}




More information about the busybox-cvs mailing list