HomeFreeBSD

MFC r317709: csplit: Fix check of fputs() return value, making csplit work

Description

MFC r317709: csplit: Fix check of fputs() return value, making csplit work
again.

As of r295638, fputs() returns the number of bytes written (if not more than
INT_MAX). This broke csplit completely, since csplit assumed success only
for the return value 0.

PR: 213510
Relnotes: yes

Details

Provenance
jillesAuthored on
Parents
rS318237: MFC r318015:
Branches
Unknown
Tags
Unknown