diff options
author | Pádraig Brady <P@draigBrady.com> | 2016-11-09 17:23:04 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-11-09 19:36:42 +0000 |
commit | 7fc7206b03a7f54b23904373ad397f693a5fae2a (patch) | |
tree | f82dde5b62877b33a07859dc4538fb95f4b31b50 /NEWS | |
parent | 2a809125299261db9db9b97e93b5885223c6e9d3 (diff) | |
download | coreutils-7fc7206b03a7f54b23904373ad397f693a5fae2a.tar.xz |
tail: avoid outputting repeated data with remote files
* src/tail.c (tail_forever): Only read up to st_size on network
file systems to avoid the issue with a stale attribute cache
returning a smaller st_size than we have already read().
The was seen with glusterfs at least and caused the complete
file to be repeatedly output due to assuming the file was
truncated in this case.
* NEWS: Mention the fix.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -55,6 +55,10 @@ GNU coreutils NEWS -*- outline -*- to read from stdin. Previously it behaved as if --retry was specified. [This bug was present in "the beginning".] + tail -f 'remote file' will now avoid outputting repeated data on network + file systems that misreport file sizes through stale metadata. + [This bug was present in "the beginning" but exacerbated in coreutils-8.24] + yes now handles short writes, rather than assuming all writes complete. [bug introduced in coreutils-8.24] |