tail: fix checking of remoteness when not using inotify
commit68c5eeccd0365a6953d292550ffa5c537fa00f90
authorPádraig Brady <P@draigBrady.com>
Wed, 23 Nov 2016 17:10:20 +0000 (23 17:10 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 24 Nov 2016 00:24:21 +0000 (24 00:24 +0000)
tree7bbe212d8531f85d20937202fa41640fb84c5a3d
parent477a1e8ed493132e3741c5830c4bd30e19820951
tail: fix checking of remoteness when not using inotify

In recent commit v8.25-93-g7fc7206 we used the f->remote flag
which wasn't set in all cases.  This was detected with
ASAN giving this error when reading f->remote;
  runtime error: load of value 190,
  which is not a valid value for type '_Bool'

* src/tail.c (fremote): Query the system even without inotify.
(recheck): Always set f->fremote for valid files.
src/tail.c