From 5735eda87465c1f800aa1a66cd47d28f02d3e1a3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 20 Mar 2014 16:05:47 +0100 Subject: [PATCH] inittab: avoid character collating to work around character class escaping issue in a regex This makes the regex work with musl Signed-off-by: Felix Fietkau --- inittab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inittab.c b/inittab.c index e935ece..a9c3535 100644 --- a/inittab.c +++ b/inittab.c @@ -249,7 +249,7 @@ void procd_inittab(void) return; } - regcomp(&pat_inittab, "([a-zA-Z0-9]*):([a-zA-Z0-9]*):([a-zA-Z0-9]*):([a-zA-Z0-9/[.-.]. ]*)", REG_EXTENDED); + regcomp(&pat_inittab, "([a-zA-Z0-9]*):([a-zA-Z0-9]*):([a-zA-Z0-9]*):(.*)", REG_EXTENDED); line = malloc(LINE_LEN); a = malloc(sizeof(struct init_action)); memset(a, 0, sizeof(struct init_action)); -- 2.25.1