sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 124cb7415a9a1a55f2dff5adc36a2e14f0392adc
parent a25a57f6ac74174bfbceeaf1255e64a028338474
Author: sin <sin@2f30.org>
Date:   Mon,  9 Feb 2015 15:03:35 +0000

tail: Ignore anything other than FIFOs and regular files for -f

Diffstat:
Mtail.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/tail.c b/tail.c @@ -101,6 +101,8 @@ main(int argc, char *argv[]) newline ? "\n" : "", argv[0]); if (stat(argv[0], &st1) < 0) eprintf("stat %s:", argv[0]); + if (!(S_ISFIFO(st1.st_mode) || S_ISREG(st1.st_mode))) + fflag = 0; newline = 1; tail(fp, argv[0], n);