mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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.
This commit is contained in:
1 parent
a4a864da36
commit
a8d26b3ce1
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user