projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a9cbcd
)
inittab: avoid character collating to work around character class escaping issue...
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 20 Mar 2014 15:05:47 +0000
(16:05 +0100)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/inittab.c
b/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));