linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] udevd: Fix string escape option
@ 2008-10-25 13:00 Alan Jenkins
  2008-10-25 13:21 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Jenkins @ 2008-10-25 13:00 UTC (permalink / raw)
  To: linux-hotplug

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

diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index a11cc47..45806c3 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -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);



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-25 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-25 13:00 [PATCH] udevd: Fix string escape option Alan Jenkins
2008-10-25 13:21 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).