Jim Meyering
295ee521bc
head: with --lines=-N (-n-N) reset file pointer on seekable input
...
* src/head.c (elide_tail_lines_seekable): Reset file pointer
after printing up to an end-relative line-counted offset.
Anoop Sharma reported the problem and suggested the fix.
* tests/misc/head-pos: Add coverage via a very similar, existing test.
Also add coverage for a previously untested block of code.
* tests/misc/head-elide-tail ($READ_BUFSIZE): Update to 8192, to
match the value of BUFSIZ I see today on Fedora 17/x86_64 (unrelated
to this fix).
* NEWS (Bug fixes): Mention it.
Improved-by: Pádraig Brady
2012-06-05 19:55:26 +02:00
..
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-03-07 12:59:00 +00:00
2012-01-01 10:04:06 +01:00
2012-01-09 21:50:08 +01:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-05-08 02:18:39 +01:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-09 21:50:08 +01:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:22:24 +02:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-03-10 19:53:06 +00:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:22:24 +02:00
2012-03-20 17:34:28 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-06-05 19:55:26 +02:00
2012-06-05 19:55:26 +02:00
2012-02-26 09:48:48 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-27 19:54:03 +02:00
2012-01-07 17:18:14 +01:00
2012-01-09 21:50:08 +01:00
2012-04-04 12:22:24 +02:00
2012-04-04 12:22:24 +02:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:50:08 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-09 21:50:08 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:50:08 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:22:24 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-03-14 09:23:40 -06:00
2012-03-15 12:24:05 -06:00
2012-04-04 12:20:56 +02:00
2012-04-04 12:20:56 +02:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-04-04 12:20:56 +02:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-05 15:13:34 +00:00
2012-01-01 10:04:06 +01:00
2012-01-09 21:50:08 +01:00
2012-04-04 14:30:18 +02:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-05-16 07:46:51 +02:00
2012-01-01 10:04:06 +01:00
2012-03-26 20:56:44 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-01-25 23:16:17 +00:00
2012-04-19 19:31:48 +02:00
2012-04-04 12:20:56 +02:00
2012-04-19 19:31:48 +02:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:50:08 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-09 21:50:08 +01:00
2012-01-09 21:50:08 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-05 15:12:16 +00:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-05-10 11:02:42 +02:00
2012-05-31 09:37:46 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-05-10 17:09:42 +02:00
2012-01-27 11:35:24 +01:00
2012-05-08 02:18:39 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-09 21:50:08 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-09 21:50:08 +01:00