HomeFreeBSD

MFC r313948: bsdgrep: fix EOF handling with --mmap

Description

MFC r313948: 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
Approved by: emaste (mentor)

Details

Provenance
kevansAuthored on
Parents
rS322519: Modify nfsrv_pnfsremovesetup() and nfsrv_pnfsremove(), factoring out the part
Branches
Unknown
Tags
Unknown