inittab: avoid character collating to work around character class escaping issue...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 20 Mar 2014 15:05:47 +0000 (16:05 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 20 Mar 2014 15:05:49 +0000 (16:05 +0100)
This makes the regex work with musl

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
inittab.c

index e935ecee36a112eef770d39f31a27275910677e3..a9c3535eba506e89c010f84b5199eee457eb3cd0 100644 (file)
--- 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));