package/base-files: caldata: use dd iflag fullblock
authorJohn Thomson <git@johnthomson.fastmail.com.au>
Wed, 9 Dec 2020 03:03:04 +0000 (13:03 +1000)
committerPetr Štetiar <ynezz@true.cz>
Fri, 11 Dec 2020 12:48:24 +0000 (13:48 +0100)
commitd82c1912838f262b6f4b9157077f390f5f06b6c4
treef39f0cb8e2497835a711b37c7f03e0ca4478ab87
parent064d65c2f76409759ac8d72268f2558c7b55f3b3
package/base-files: caldata: use dd iflag fullblock

This dd flag ensures that the requested size
is retrieved from pipes or special filesystems (if available).

Without this flag, on multi-core systems,
Piped or special filesystem data can be truncated
when a size greater than PIPE_BUF is requested.

Fixes: FS#3494
Fixes: 7557e7f ("package/base-files: caldata: work around dd's
limitation")
Cc: Thibaut VARÈNE <hacks@slashdirt.org>
Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
package/base-files/Makefile
package/base-files/files/lib/functions/caldata.sh