From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] udevd: Fix string escape option
Date: Sat, 25 Oct 2008 13:00:11 +0000 [thread overview]
Message-ID: <4903185B.4050806@tuffmail.co.uk> (raw)
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);
next reply other threads:[~2008-10-25 13:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-25 13:00 Alan Jenkins [this message]
2008-10-25 13:21 ` [PATCH] udevd: Fix string escape option Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4903185B.4050806@tuffmail.co.uk \
--to=alan-jenkins@tuffmail.co.uk \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.