wok rev 9225
busybox: fix cksum applet
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 11 18:53:09 2011 +0100 (2011-03-11) |
parents | 3d0f1a3ab4c1 |
children | c53e126f4550 |
files | busybox/receipt busybox/stuff/busybox-1.18-cksum.u |
line diff
1.1 --- a/busybox/receipt Fri Mar 11 18:33:40 2011 +0100 1.2 +++ b/busybox/receipt Fri Mar 11 18:53:09 2011 +0100 1.3 @@ -29,6 +29,7 @@ 1.4 printable.u 1.5 cmdline.u 1.6 conspy.u 1.7 +cksum.u 1.8 EOT 1.9 cp ../stuff/$PACKAGE-${VERSION%.*}.config .config 1.10 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/busybox/stuff/busybox-1.18-cksum.u Fri Mar 11 18:53:09 2011 +0100 2.3 @@ -0,0 +1,10 @@ 2.4 +--- busybox-1.18.0/coreutils/cksum.c 2.5 ++++ busybox-1.18.0/coreutils/cksum.c 2.6 +@@ -38,6 +38,7 @@ 2.7 + 2.8 + #define read_buf bb_common_bufsiz1 2.9 + while ((bytes_read = safe_read(fd, read_buf, sizeof(read_buf))) > 0) { 2.10 ++ length += bytes_read; 2.11 + crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table); 2.12 + } 2.13 + close(fd);