Skip to contentSkip to conversation

udevd: Fix string escape option

PATCH In review Alan Jenkins 2 participants 2 messages Oct 25, 2008

lore
Share & tools
lore
#0 lore raw

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
index a11cc47..45806c3 100644
@@ -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);
#1 lore raw
Quoted 1 line · Alan Jenkins

I don't think the string_escape option will work if it's reset after each token.

Yeah, looks like. Applied!

Thanks,
Kay