linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* small parser fix
@ 2003-12-17 15:02 Marco d'Itri
  2003-12-17 18:29 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Marco d'Itri @ 2003-12-17 15:02 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 223 bytes --]

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]

[-- Attachment #2: fix_nl_rules --]
[-- Type: text/plain, Size: 387 bytes --]

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 */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-17 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-17 15:02 small parser fix Marco d'Itri
2003-12-17 18:29 ` 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).