From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Date: Thu, 09 Sep 2004 11:17:46 +0000 Subject: udev parse bug Message-Id: <41403BDA.6080103@redhat.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------020007090506030509080206" List-Id: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------020007090506030509080206 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit There is a bug parsing PROGRAMs after apostrophes. Try PROGRAM="/bin/echo 'test test". -- Harald Hoyer, Senior Software Engineer 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 --------------020007090506030509080206 Content-Type: text/plain; name="udev-030-parse.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="udev-030-parse.patch" --- 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]); --------------020007090506030509080206-- ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ 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