Update of /cvsroot/blob/blob/src/lib
In directory usw-pr-cvs1:/tmp/cvs-serv17161
Modified Files:
tar.c
Log Message:
- allow GNU tar headers and POSIX headers
Index: tar.c
===================================================================
RCS file: /cvsroot/blob/blob/src/lib/tar.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- tar.c 3 May 2002 09:59:16 -0000 1.4
+++ tar.c 25 Jul 2002 14:08:00 -0000 1.5
@@ -151,6 +151,7 @@
return -EINVAL;
name = (char *)conf;
+ DBG( 5, "%s: name=%s\n", __FUNCTION__, name );
/* init new archive struct */
ret = tar_init( arch, child );
@@ -434,7 +435,7 @@
return -EINVAL;
/* check magic */
- ret = strncmp( hdr->magic, TMAGIC, TMAGLEN );
+ ret = strncmp( hdr->magic, TMAGIC, 5 ); // "ustar"
if ( ret != 0 )
return -EINVAL;
|