summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-20 16:05:47 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-20 16:05:49 +0100
commit5735eda87465c1f800aa1a66cd47d28f02d3e1a3 (patch)
tree3b00e42b597929d32e9af1676c29f6e73f5f97e6
parent7a9cbcd88b6cf3c0cbee6d4f76c2adaedc54058d (diff)
downloadunitd-5735eda87465c1f800aa1a66cd47d28f02d3e1a3.tar
unitd-5735eda87465c1f800aa1a66cd47d28f02d3e1a3.zip
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 <nbd@openwrt.org>
-rw-r--r--inittab.c2
1 files changed, 1 insertions, 1 deletions
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));