[PATCH] Allow MC to open incremental tar archives



Hello,

This patch fixes the following issue:
https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=8684

ChangeLog:

20041130  Pavel Tsekov  <ptsekov gmx net>

	* tar.c (tar_read_header): Skip over records containing
	incremental tar specific info.
Index: tar.c
===================================================================
RCS file: /cvsroot/mc/mc/vfs/tar.c,v
retrieving revision 1.69
diff -u -p -r1.69 tar.c
--- tar.c	1 Nov 2004 07:49:36 -0000	1.69
+++ tar.c	30 Nov 2004 17:33:39 -0000
@@ -403,6 +403,13 @@ tar_read_header (struct vfs_class *me, s
     else
 	*h_size = tar_from_oct (1 + 12, header->header.size);
 
+    /*
+     * Skip over directory snapshot info records that
+     * are stored in incremental tar archives.
+     */
+    if (header->header.linkflag == LF_DUMPDIR)
+	return STATUS_SUCCESS;
+
     header->header.arch_name[NAMSIZ - 1] = '\0';
     if (header->header.linkflag == LF_LONGNAME
 	|| header->header.linkflag == LF_LONGLINK) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]