commit:     efe9365be7d8b0aab2d0768f05848f89657b45ee
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 27 20:29:25 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Jul 28 21:19:30 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=efe9365b

gen_determineargs.sh: determine_real_args(): Fix LOCALVERSION validation pattern

Fixes c859019 ("Add --kernel-localversion option")
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gen_determineargs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index f1c887e..3674cf0 100755
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -477,7 +477,7 @@ determine_real_args() {
                                UNSET)
                                        ;;
                                *)
-                                       local 
valid_localversion_pattern='^-[A-Za-z0-9\-_]{1,}$'
+                                       local 
valid_localversion_pattern='^[A-Za-z0-9_.-]{1,}$'
                                        if [[ ! "${KERNEL_LOCALVERSION}" =~ 
${valid_localversion_pattern} ]]
                                        then
                                                gen_die "--kernel-localversion 
value '${KERNEL_LOCALVERSION}' does not match '${valid_localversion_pattern}' 
regex!"

Reply via email to