bug#49209: coreutils: stack out-of-bounds write in tail --follow

2021-06-26 Thread Paul Eggert
On 6/24/21 8:50 AM, Paul Eggert wrote: inotify_init can return 1025 even if called first thing, so we also need to dup2 the result of early inotify_init down to 3 (or whatever), or at least to check that it's less than 1024. Choosing 3 is a tricky business, since it's not clear what fds the C

bug#49217: [PATCH] tests: exercise shuf --input-range edge cases

2021-06-26 Thread Erik Auerswald
* tests/misc/shuf.sh: Test valid "shuf -i" edge cases that result in a single line of input, or no line at all. Test an invalid range, too. --- tests/misc/shuf.sh | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/misc/shuf.sh b/tests/misc/shuf.sh index

bug#49217: [PATCH] doc: clarify valid ranges for shuf -i

2021-06-26 Thread Erik Auerswald
* doc/coreutils.texi (shut invocation): Mention valid and invalid edge cases for --input-range. --- doc/coreutils.texi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index ea040458e..f59c5e962 100644 --- a/doc/coreutils.texi +++