summaryrefslogtreecommitdiff
path: root/bootstrap.conf
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-06-26 18:23:52 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-06-26 18:40:26 -0700
commitda0d448bca62c6305fc432f67e2c5ccc2da75346 (patch)
tree66edb80203a1f0c751f17c7916af833e464be0c0 /bootstrap.conf
parent177bfdd7ca7bb7fe602ab04756521c9caeccb413 (diff)
downloadcoreutils-da0d448bca62c6305fc432f67e2c5ccc2da75346.tar.gz
tail: use poll, not select
This fixes an unlikely stack out-of-bounds write reported by Stepan Broz via Kamil Dudka (Bug#49209). * bootstrap.conf (gnulib_modules): Replace select with poll. * src/tail.c: Do not include <sys/select.h>. [!_AIX]: Include poll.h. (check_output_alive) [!_AIX]: Use poll instead of select. (tail_forever_inotify): Likewise. Simplify logic, as there is no need for a ‘while (len <= evbuf_off)’ loop.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r--bootstrap.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index daea2824c..e7ed7e5ff 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -193,6 +193,7 @@ gnulib_modules="
physmem
pipe-posix
pipe2
+ poll
posix-shell
posixtm
posixver
@@ -227,7 +228,6 @@ gnulib_modules="
save-cwd
savedir
savewd
- select
selinux-at
setenv
settime