HomeFreeBSD

xargs: improve foundeof check for -E

Description

xargs: improve foundeof check for -E

4aeb63826e0f got it almost correct (we can't use strcmp() here as
current argument isn't guaranteed to be NUL-terminated), but we also
need to check that current argument length is equal to that of eofstr.

PR: 270867
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D39583

Details

Provenance
yuripvAuthored on Apr 17 2023, 7:14 PM
Reviewer
bapt
Differential Revision
D39583: xargs: improve foundeof check for -E
Parents
rGb03311cadd3a: renice: Avoid segfault if -n flag is given without argument.
Branches
Unknown
Tags
Unknown