]> git.ipfire.org Git - ipfire-2.x.git/commit
Config: Don't interpret file names as regular expressions
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Dec 2024 11:50:51 +0000 (11:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 14 Dec 2024 12:06:30 +0000 (12:06 +0000)
commitf2fce26932d86ac6e15ec33d58ae432958411410
treea54c12238dfb417e266bbcd2b96656ab7501d2ac
parent804ac341a18718e5593ef8d77670d28018515aa7
Config: Don't interpret file names as regular expressions

When we are searching for changes in rootfiles, we walk through each
file that we have found in the build and check if it exists in the
rootfile. That check interpreted filenames as regular expressions which
caused a problem in the case of "/usr/bin/[".

This patch changes that grep will only search for an exact string match
(-F) and the string must be the entire line (-x).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/Config