From: Felix Fietkau Date: Thu, 20 Mar 2014 15:05:47 +0000 (+0100) Subject: inittab: avoid character collating to work around character class escaping issue... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5735eda87465c1f800aa1a66cd47d28f02d3e1a3;p=oweals%2Fprocd.git 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 --- 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));