* src/tail.c (tail_lines): Fix embarrassing SEEK_END typo.
Luckily this matters only in never-used (though valid) invocations.
stdbuf now works on AIX. Previously it would have been ineffective.
[bug introduced with the stdbuf program in coreutils-7.5]
+ 'tail -f -n +NUM' no longer mishandles NUM values >= UINTMAX_MAX
+ when the input is seekable.
+ [bug introduced in coreutils-9.6]
+
tty now exits with status 4 with a special diagnostic if ttyname
fails even though standard input is a tty. Formerly it quietly
pretended that standard input was not a tty.
{
/* If skipping all input use lseek if possible, for speed. */
off_t pos;
- if (n_lines == UINTMAX_MAX && 0 <= (pos = lseek (fd, SEEK_END, 0)))
+ if (n_lines == UINTMAX_MAX && 0 <= (pos = lseek (fd, 0, SEEK_END)))
*read_pos = pos;
else
{