From: Harald Hoyer <harald@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: udev parse bug
Date: Thu, 09 Sep 2004 11:17:46 +0000 [thread overview]
Message-ID: <41403BDA.6080103@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 314 bytes --]
There is a bug parsing PROGRAMs after apostrophes. Try PROGRAM="/bin/echo 'test test".
--
Harald Hoyer, Senior Software Engineer <harald@redhat.com>
gpg fingerprint E930 20E6 CCF8 C76C 8582 CF9F B7B7 45C2 C557 5542
http://harryh.homelinux.org http://people.redhat.com/harald
Red Hat GmbH : http://www.redhat.de
[-- Attachment #2: udev-030-parse.patch --]
[-- Type: text/plain, Size: 411 bytes --]
--- udev-030/namedev.c.nsize 2004-09-08 15:17:55.152437025 +0200
+++ udev-030/namedev.c 2004-09-08 15:17:55.161435748 +0200
@@ -433,9 +435,9 @@
/* don't separate if in apostrophes */
pos++;
argv[i] = strsep(&pos, "\'");
- while (pos[0] == ' ')
+ while (pos && pos[0] == ' ')
pos++;
- } else {
+ } else {
argv[i] = strsep(&pos, " ");
}
dbg("arg[%i] '%s'", i, argv[i]);
next reply other threads:[~2004-09-09 11:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-09 11:17 Harald Hoyer [this message]
2004-09-14 6:01 ` udev parse bug Greg KH
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=41403BDA.6080103@redhat.com \
--to=harald@redhat.com \
--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 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).