]> git.ipfire.org Git - thirdparty/coreutils.git/commit
csplit: diagnose file counter wraparound
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Dec 2010 08:07:35 +0000 (00:07 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Dec 2010 08:07:59 +0000 (00:07 -0800)
commitbc4e77927c6610d856bec90a60da931e33d3abbb
treeb2f2c77b8e60149b1aa897d2ef7b11a69e91def5
parent1d0a1203777bf8478822e6dfb64cd49368a4d588
csplit: diagnose file counter wraparound

* src/csplit.c (create_output_file): Detect overflow when the
file counter wraps around, and exit with a diagnostic.  Formerly
the code silently wrapped around and wrote to the wrong file,
losing output data.
src/csplit.c