udevd: Fix string escape option
PATCH 1/1 udevd: Fix string escape option
I don't think the string_escape option will work if it's reset after each token.
udev/udev-rules.c +1 -1
@@ -1593,6 +1593,7 @@ enum escape_type {int udev_rules_apply_to_event (struct udev_rules *rules,struct udev_event *event) { +enum escape_type esc =ESCAPE_UNSET ;struct token *rule;struct token *cur;
@@ -1602,7 +1603,6 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event/* loop through token list, match, run actions or forward to next rule */ cur = &rules->tokens[0 ];while (cur !=NULL && cur->type !=TK_END ) { -enum escape_type esc =ESCAPE_UNSET ;unsigned int idx;dump_token (rules, cur);
Quoted 1 line · Alan Jenkins
I don't think the
string_escapeoption will work if it's reset after each token.
Yeah, looks like. Applied!
Thanks,
Kay