busybox: 1.18.3 cksum fix
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 11 Mar 2011 23:03:52 +0000 (00:03 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 11 Mar 2011 23:03:52 +0000 (00:03 +0100)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/busybox/busybox-1.18.3/busybox-1.18.3-cksum.patch [new file with mode: 0644]

diff --git a/package/busybox/busybox-1.18.3/busybox-1.18.3-cksum.patch b/package/busybox/busybox-1.18.3/busybox-1.18.3-cksum.patch
new file mode 100644 (file)
index 0000000..97b05a0
--- /dev/null
@@ -0,0 +1,10 @@
+--- busybox-1.18.3/coreutils/cksum.c
++++ busybox-1.18.3-cksum/coreutils/cksum.c
+@@ -38,6 +38,7 @@ int cksum_main(int argc UNUSED_PARAM, ch
+ #define read_buf bb_common_bufsiz1
+               while ((bytes_read = safe_read(fd, read_buf, sizeof(read_buf))) > 0) {
++                      length += bytes_read;
+                       crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table);
+               }
+               close(fd);