From d5ab4cbe424e3e95140eec22ef828f50b2fb3067 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Fri, 4 Jan 2019 09:29:13 -0800
Subject: [PATCH] tail: don't exit immediately with filters on AIX
* src/tail.c: Fix the check_output_available check on AIX.
Note we don't use poll for all systems as the overhead
of adding the gnulib poll module wouldn't be worth it
just for this single use.
* tests/tail-2/pipe-f.sh: Fix the test which always passed
due to only the exit code of sleep being checked.
* NEWS: Mention the bug fix and rearrange alphabetically.
Fixes http://bugs.gnu.org/33946
---
NEWS | 8 +++++---
src/tail.c | 13 +++++++++++++
tests/tail-2/pipe-f.sh | 5 ++++-
3 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/NEWS b/NEWS
index 4a57d221b..6a9c0bca2 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,9 @@ GNU coreutils NEWS -*- outline -*-
** Bug fixes
+ 'base64 a b' now correctly diagnoses 'b' as the extra operand, not 'a'.
+ [bug introduced in coreutils-5.3.0]
+
When B already exists, 'cp -il A B' no longer immediately fails
after asking the user whether to proceed.
[This bug was present in "the beginning".]
@@ -21,9 +24,8 @@ GNU coreutils NEWS -*- outline -*-
sync no longer fails for write-only file arguments.
[bug introduced with argument support to sync in coreutils-8.24]
- In 'base64 a b', and likewise for base32, the tool now correctly
- diagnoses 'b' as the extra operand, not 'a'.
- [bug introduced in coreutils-5.3.0]
+ 'tail -f file | filter' no longer exits immediately on AIX.
+ [bug introduced in coreutils-8.28]
** Changes in behavior
diff --git a/src/tail.c b/src/tail.c
index 0270cbe07..9f5f44315 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -30,6 +30,9 @@
#include