* udev parse bug
@ 2004-09-09 11:17 Harald Hoyer
2004-09-14 6:01 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Harald Hoyer @ 2004-09-09 11:17 UTC (permalink / raw)
To: linux-hotplug
[-- 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]);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: udev parse bug
2004-09-09 11:17 udev parse bug Harald Hoyer
@ 2004-09-14 6:01 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-09-14 6:01 UTC (permalink / raw)
To: linux-hotplug
On Thu, Sep 09, 2004 at 01:17:46PM +0200, Harald Hoyer wrote:
> There is a bug parsing PROGRAMs after apostrophes. Try PROGRAM="/bin/echo
> 'test test".
Applied, thanks.
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-14 6:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 11:17 udev parse bug Harald Hoyer
2004-09-14 6:01 ` Greg KH
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).