]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tailf: ensure file argument really is a file
authorSami Kerola <kerolasa@iki.fi>
Tue, 17 Feb 2015 21:41:46 +0000 (21:41 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 5 Mar 2015 09:31:18 +0000 (10:31 +0100)
commit9195eca64dcb9f25fec431fa24a3be6a8212b769
treefc5dcd06212a83a7805bf0835febeab9121a0889
parent16d3d9a04d5d2a7f4f10c3658cccc5aa0c7cd0af
tailf: ensure file argument really is a file

The tailf(1) never worked very well with block or character devices,
sockets, fifos and such.  Now after mmap() is used to find last lines
even the little command used to work for example pipes is broken, so test
the tailf is asked to follow a file and when not fail.  That said
symlinks are OK, as long they point to a file.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/tailf.c