split: fix the suffix length calculation
authorPádraig Brady <P@draigBrady.com>
Thu, 30 Dec 2010 01:36:59 +0000 (01:36 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 30 Dec 2010 16:26:20 +0000 (16:26 +0000)
commit44dbcae6b98700617d4d3cb8d799ce83d538e3e7
treeffeea8e1488a96e5d3baa713d2b29e9afa3c0566
parentb0097f3d2180352896a4434fb8eaeb076f12794c
split: fix the suffix length calculation

* src/split.c (set_suffix_length): Only auto-calculate
the suffix length when the number of files is specified.
* tests/misc/split-a: Add a case to trigger the bug,
and exercise the suffix length auto-calculation.
* NEWS: Mention the fix.
Reported by Dmitry V. Levin and Sergey Vlasov at
https://bugzilla.altlinux.org/show_bug.cgi?id=24841
NEWS
THANKS
src/split.c
tests/misc/split-a