]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: fix tail -f failure when inotify used
authorPádraig Brady <P@draigBrady.com>
Wed, 12 Aug 2009 18:01:56 +0000 (19:01 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 13 Aug 2009 15:09:27 +0000 (16:09 +0100)
commitf43f02865253e1cca210cc588269f5acf755259f
tree3daac617ab4bd074054442bbbdd3a9dad79d4dbc
parente4caea57759495847dc52f7a7d062500dd711a96
tail: fix tail -f failure when inotify used

* src/tail.c (tail_forever_inotify): Remove the redundant and
incorrect error check of the return from inotify_add_watch().
Also initialize the wd member of each File_spec to an invalid value.
Reported by C de-Avillez.
src/tail.c