summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-03-11 23:03:52 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-03-11 23:03:52 (GMT)
commit03a5df1353f7f154f26edaac1d60d30976774656 (patch)
treeea7540a60377209464c4d10d886bedbecc3769be
parent9c35b09873f4d73fcadf7efdcd05b78b49477a55 (diff)
downloadbuildroot-03a5df1353f7f154f26edaac1d60d30976774656.tar.gz
buildroot-03a5df1353f7f154f26edaac1d60d30976774656.tar.bz2
busybox: 1.18.3 cksum fix
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/busybox/busybox-1.18.3/busybox-1.18.3-cksum.patch10
1 files changed, 10 insertions, 0 deletions
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
index 0000000..97b05a0
--- /dev/null
+++ b/package/busybox/busybox-1.18.3/busybox-1.18.3-cksum.patch
@@ -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);