From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Jenkins Date: Sat, 25 Oct 2008 13:00:11 +0000 Subject: [PATCH] udevd: Fix string escape option Message-Id: <4903185B.4050806@tuffmail.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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);