sed: convert sed to use REG_STARTEND more explicitly.
commitf98bda461d8f7c3915855e0713c074b9faf660f3
authorpfg <pfg@FreeBSD.org>
Wed, 25 May 2016 15:42:39 +0000 (25 15:42 +0000)
committerpfg <pfg@FreeBSD.org>
Wed, 25 May 2016 15:42:39 +0000 (25 15:42 +0000)
tree8f602e8a9ae4b4db5e114feb57dec14a99fbc83a
parentbcd6e4b33313419b08cb0f38ef7a532fcc5ccb66
sed: convert sed to use REG_STARTEND more explicitly.

Summarizing the findings in the OpenBSD list:

This solves a reproduceable issue with very recent Mesa where REG_NOTBOL
combined with a match at the begin of the string causes our regex library
to treat the word as not begin of word.

Thanks to Martijn van Duren and Ingo Schwarze for taking the time to
solve this in the least invasive way.

PR: 209352, 209387
Taken from:     openbsd-tech (Martijn van Duren)
MFC after: 1 month
usr.bin/sed/process.c