diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-03-20 16:05:47 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-03-20 16:05:49 +0100 |
commit | 5735eda87465c1f800aa1a66cd47d28f02d3e1a3 (patch) | |
tree | 3b00e42b597929d32e9af1676c29f6e73f5f97e6 | |
parent | 7a9cbcd88b6cf3c0cbee6d4f76c2adaedc54058d (diff) | |
download | unitd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |