HomeFreeBSD

split: Fix linecount parsing.

Description

split: Fix linecount parsing.

The “undocumented kludge” which unfortunately can't be dropped for backward compatibility reasons was prone to segfaulting and would improperly allow a new linecount when one was already set. Fix these issues and add regression tests.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D41757

Details

Provenance
desAuthored on Sep 6 2023, 3:28 AM
Reviewer
kevans
Differential Revision
D41757: split: Fix linecount parsing.
Parents
rG851bf856d1a7: split: Code cleanup.
Branches
Unknown
Tags
Unknown