@@ -273,7 +273,7 @@ void Untar(unsigned char *buf, int len)
273
273
//int size = atoi(ph->size);
274
274
int size = strtol (ph -> size , NULL , 8 );
275
275
printf ("%c %s %8i %s\n" , ph -> typeflag , ph -> mode , size , ph -> name );
276
- MergeFile (ph );
276
+ if ( ph -> typeflag != 'L' ) MergeFile (ph );
277
277
278
278
if (size != 0 ) {
279
279
p = p + size ;
@@ -566,7 +566,7 @@ void WalkDir(int parentid)
566
566
system(command);
567
567
*/
568
568
569
-
569
+
570
570
}
571
571
if (ShouldBeLoaded (inodes [i ].name )) {
572
572
inodes [i ].load = 1 ;
@@ -584,7 +584,7 @@ void CreateFilesystem()
584
584
585
585
int main (int argc , char * argv [])
586
586
{
587
- unsigned char * buf = (unsigned char * )malloc (60 * 1024 * 1024 );
587
+ unsigned char * buf = (unsigned char * )malloc (80 * 1024 * 1024 );
588
588
589
589
if (argc < 2 )
590
590
{
@@ -593,8 +593,8 @@ int main(int argc, char *argv[])
593
593
}
594
594
printf ("Build sysroot in folder %s\n" , "fs" );
595
595
596
- inodes = (struct inode * ) malloc (10000 * sizeof (struct inode ));
597
- memset (inodes , 0 , 10000 * sizeof (struct inode ));
596
+ inodes = (struct inode * ) malloc (20000 * sizeof (struct inode ));
597
+ memset (inodes , 0 , 20000 * sizeof (struct inode ));
598
598
599
599
int i = 0 ;
600
600
char filename [256 ];
0 commit comments