From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marco d'Itri" Date: Wed, 17 Dec 2003 15:02:38 +0000 Subject: small parser fix MIME-Version: 1 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR" Message-Id: List-Id: To: linux-hotplug@vger.kernel.org --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The parser will complain if the rules file contains empty lines. BTW, it's a real PITA udev exiting without an output or logging if a single line in a config file cannot be parsed. -- ciao, | Marco | [3659 anKlt7WQ1y7rw] --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=fix_nl_rules diff -ruN udev-009.orig/namedev_parse.c udev-009/namedev_parse.c --- udev-009.orig/namedev_parse.c 2003-12-16 03:26:49.000000000 +0100 +++ udev-009/namedev_parse.c 2003-12-17 15:52:20.000000000 +0100 @@ -159,7 +160,7 @@ dbg_parse("read '%s'", temp); /* empty line? */ - if (*temp == 0x00) + if (*temp == 0x00 || *temp == '\n') continue; /* see if this is a comment */ --T4sUOijqQbZv57TR-- ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&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