]> git.ipfire.org Git - thirdparty/coreutils.git/commit
head: fix bug with head -c-N when stdin is not at start
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Mar 2014 17:21:58 +0000 (10:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Mar 2014 17:24:07 +0000 (10:24 -0700)
commitd08381bc261d95502a205f7214686f80383c9692
tree7cb9c052f70fe75fe4474233a6ca500afacc871b
parent2d8ae88a228ac82c725f22aaee24accde8a12dcf
head: fix bug with head -c-N when stdin is not at start

* src/head.c (elide_tail_bytes_file): Fix typo in lseek invocation.
* tests/misc/head-c.sh: Add test for this bug.
* NEWS: Document this.
NEWS
src/head.c
tests/misc/head-c.sh