HomeFreeBSD

bsdgrep: fix EOF handling with --mmap

Description

bsdgrep: fix EOF handling with --mmap

Rework part of the loop in grep_fgetln to return the rest of the line
and ensure that we still advance the buffer by the length of the rest
of the line.

PR: 165471
Submitted by: Kyle Evans <kevans91@ksu.edu>
MFC after: 1 month

Details

Provenance
emasteAuthored on
Parents
rS313947: There are some Linux binaries that expect the system to obey the "addr"
Branches
Unknown
Tags
Unknown