From: "Marco d'Itri" <md@Linux.IT>
To: linux-hotplug@vger.kernel.org
Subject: small parser fix
Date: Wed, 17 Dec 2003 15:02:38 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-107167386904489@msgid-missing> (raw)
[-- 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 */
next reply other threads:[~2003-12-17 15:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-17 15:02 Marco d'Itri [this message]
2003-12-17 18:29 ` small parser fix Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-107167386904489@msgid-missing \
--to=md@linux.it \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).