wok rev 10939

fusecloop: fix buggy patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 28 21:01:21 2011 +0200 (2011-08-28)
parents 1e7452b326f8
children ded2ad0d846d
files fusecloop/stuff/fusecloop.u
line diff
     1.1 --- a/fusecloop/stuff/fusecloop.u	Sun Aug 28 11:53:02 2011 +0200
     1.2 +++ b/fusecloop/stuff/fusecloop.u	Sun Aug 28 21:01:21 2011 +0200
     1.3 @@ -273,23 +273,6 @@
     1.4   	}
     1.5   	return 0;
     1.6   }
     1.7 -@@ -105,12 +140,12 @@
     1.8 - 			fprintf(stderr, "Uncomp: unknown error %u\n", i);
     1.9 - 			exit(1);
    1.10 - 		}
    1.11 --		if (destlen != ntohl(head.block_size)) {
    1.12 --			fprintf(stderr, "Uncomp: bad len %u (%lu not %u)\n", i,
    1.13 --				destlen, ntohl(head.block_size));
    1.14 -+		if (destlen != block_size) {
    1.15 -+			fprintf(stderr, "Uncomp: bad len %u (%lu not %lu)\n", i,
    1.16 -+				destlen, block_size);
    1.17 - 			exit(1);
    1.18 - 		}
    1.19 --		write(STDOUT_FILENO, clear_buffer, ntohl(head.block_size));
    1.20 -+		write(STDOUT_FILENO, clear_buffer, block_size);
    1.21 - 	}
    1.22 - 	return 0;
    1.23 - }
    1.24  
    1.25  --- Makefile
    1.26  +++ Makefile