From: Michael Tremer Date: Mon, 19 Jan 2026 16:21:38 +0000 (+0000) Subject: readhash: Fix the quote check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=378d863d0b458883ea3bd9ee56d425c70bd965f0;p=ipfire-2.x.git readhash: Fix the quote check The single quotes changed bash's behaviour to interpret the * character literally, but this is not what we wanted here. We need to escape the single quotes. Signed-off-by: Michael Tremer Reviewed-by: Bernhard Bitsch Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/system/functions b/src/initscripts/system/functions index c4b7cb39e..757912eab 100644 --- a/src/initscripts/system/functions +++ b/src/initscripts/system/functions @@ -930,7 +930,7 @@ readhash() { # strip leading and trailing single quotes case "${val}" in - '*') + \'*\') val="${val#\'}" val="${val%\'}" ;;