diff options
author | Jim Meyering <meyering@redhat.com> | 2009-09-07 20:56:38 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-09-07 20:56:38 +0200 |
commit | a8d26b3ce1630b6e9213b79d213ad7c699ee9861 (patch) | |
tree | 658954140a8573705cc1c51e1b89edb0a525970d /src | |
parent | a4a864da365fe70eb3a69fd4347f8f747a258efd (diff) | |
download | coreutils-a8d26b3ce1630b6e9213b79d213ad7c699ee9861.tar.xz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/tail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c index c53df9e3f..9288007ca 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) |