(tail_lines): Fix a potential (but very hard to exercise)
authorJim Meyering <jim@meyering.net>
Sat, 16 Aug 2003 17:34:41 +0000 (17:34 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 16 Aug 2003 17:34:41 +0000 (17:34 +0000)
commitf6008be14a876cbb13897b73e1feeaa0a7208aa5
tree4b79b89b4bd3eda8a07cb5f5450298136124a70e
parentf4be51104a8e353795716a63268d0d32aa97de7a
(tail_lines): Fix a potential (but very hard to exercise)
race condition bug.  The bug would be triggered when tailing a file
with file pointer not at beginning of file, and where the file was
truncated to have a length of less than the initial offset at just
the right moment (between the two lseek calls in this function).
src/tail.c