grep: fix -F
commitc0f0834ac0ce3814d637c88c4551b6659d5366dd
authorLauri Tirkkonen <lotheac@iki.fi>
Sun, 6 Jan 2019 12:03:16 +0000 (6 14:03 +0200)
committerLauri Tirkkonen <lotheac@iki.fi>
Sun, 6 Jan 2019 12:03:16 +0000 (6 14:03 +0200)
tree39d71f1163eb2e65caf48563b0f75463aea23998
parent28ab91ce044a5bfaabfc4b19849f1f81cf0c8889
grep: fix -F

our regex(3) flag for fixed strings is REG_NOSPEC, which is respected in
grep.c, but the fastmatch code only checks for REG_LITERAL (which was
for some reason defined to some random number value in glue.h). make
REG_LITERAL match REG_NOSPEC and things work again.
bin/grep/regex/glue.h