diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tail.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tail.c b/src/tail.c index 1c76ef67e..b923085d1 100644 --- a/src/tail.c +++ b/src/tail.c @@ -390,21 +390,22 @@ xlseek (int fd, off_t offset, int whence, char const *filename) switch (whence) { case SEEK_SET: - error (EXIT_FAILURE, errno, _("%s: cannot seek to offset %s"), + error (0, errno, _("%s: cannot seek to offset %s"), filename, s); break; case SEEK_CUR: - error (EXIT_FAILURE, errno, _("%s: cannot seek to relative offset %s"), + error (0, errno, _("%s: cannot seek to relative offset %s"), filename, s); break; case SEEK_END: - error (EXIT_FAILURE, errno, - _("%s: cannot seek to end-relative offset %s"), + error (0, errno, _("%s: cannot seek to end-relative offset %s"), filename, s); break; default: abort (); } + + exit (EXIT_FAILURE); } /* Print the last N_LINES lines from the end of file FD. |