From: Jim Meyering Date: Mon, 7 Sep 2009 18:56:38 +0000 (+0200) Subject: tail: don't give up on inotify mode for an already-ignored "-" X-Git-Tag: v7.6~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8d26b3ce1630b6e9213b79d213ad7c699ee9861;p=thirdparty%2Fcoreutils.git tail: don't give up on inotify mode for an already-ignored "-" * src/tail.c (main): Adjust today's change to honor the F[i].ignore flag that may have been set in tail_file. --- diff --git a/src/tail.c b/src/tail.c index c53df9e3fa..9288007cad 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1991,7 +1991,7 @@ main (int argc, char **argv) bool stdin_cmdline_arg = false; for (i = 0; i < n_files; i++) - if (STREQ (file[i], "-")) + if (!F[i].ignore && STREQ (F[i].name, "-")) stdin_cmdline_arg = true; if (!disable_inotify && !stdin_cmdline_arg)