]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail -f: handle "-"/stdin once again
authorJim Meyering <meyering@redhat.com>
Mon, 7 Sep 2009 06:37:08 +0000 (08:37 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Sep 2009 07:01:14 +0000 (09:01 +0200)
commitcdfb703c5da31a798557722df516e0d01dac828a
tree3689a7d406bc1a640f4127a63c64b2846b765fc6
parent15f26e296b4948edc6c7d33fc1caa6cb50999364
tail -f: handle "-"/stdin once again

* src/tail.c (main) [HAVE_INOTIFY]: When stdin (i.e., "-", or no args,
but not /dev/stdin) is specified on the command line, don't use inotify.
Reported by Bill Brelsford in <http://bugs.debian.org/545422>.
* tests/tail-2/follow-stdin: New file.  Test for this.
* tests/Makefile.am (TESTS): Add the test.
* NEWS (Bug fixes): Mention it.
This bug was introduced in coreutils-7.5 via commit ae494d4b,
2009-06-02, "tail: use inotify if it is available".
NEWS
THANKS
src/tail.c
tests/Makefile.am
tests/tail-2/follow-stdin [new file with mode: 0755]