]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tail: don't give up on inotify mode for an already-ignored "-"
authorJim Meyering <meyering@redhat.com>
Mon, 7 Sep 2009 18:56:38 +0000 (20:56 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Sep 2009 18:56:38 +0000 (20:56 +0200)
* src/tail.c (main): Adjust today's change to honor the
F[i].ignore flag that may have been set in tail_file.

src/tail.c

index c53df9e3fab41a175a6c10c66b78cc05b9b1c142..9288007cad7c4d1ecb7475dd852b2736ea741015 100644 (file)
@@ -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)