wok-6.x rev 17885

fusecloop/extract_compressed_fs: large file support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 02 10:46:24 2015 +0200 (2015-04-02)
parents f0ffe7691d2b
children e9b024efaa14
files fusecloop/stuff/fusecloop.u
line diff
     1.1 --- a/fusecloop/stuff/fusecloop.u	Thu Apr 02 11:39:58 2015 +0300
     1.2 +++ b/fusecloop/stuff/fusecloop.u	Thu Apr 02 10:46:24 2015 +0200
     1.3 @@ -144,7 +144,7 @@
     1.4  
     1.5  --- extract_compressed_fs.c
     1.6  +++ extract_compressed_fs.c
     1.7 -@@ -1,15 +1,19 @@
     1.8 +@@ -1,19 +1,23 @@
     1.9   /* Extracts a filesystem back from a compressed fs file */
    1.10  +#define _LARGEFILE64_SOURCE
    1.11   #include "common_header.h"
    1.12 @@ -166,6 +166,11 @@
    1.13   		exit(1);
    1.14   	}
    1.15   
    1.16 +-	handle = open(argv[1], O_RDONLY);
    1.17 ++	handle = open(argv[1], O_RDONLY|O_LARGEFILE);
    1.18 + 	if (handle < 0) {
    1.19 + 		perror("Opening compressed file\n");
    1.20 + 		exit(1);
    1.21  @@ -24,44 +28,99 @@
    1.22   		exit(1);
    1.23   	}