linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 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

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).