summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2007-04-05 19:24:25 +1000
committerJeremy Kerr <jk@ozlabs.org>2007-04-05 19:24:25 +1000
commitfd3ec2d5f95590cf5fbfe065a8334b90e5fbde75 (patch)
treed45f24538497d817438a7efeaec91834c9f4b4c9
parent1a73b890cfdc3c4971311e5ae737074498e9ff99 (diff)
downloadtalos-petitboot-fd3ec2d5f95590cf5fbfe065a8334b90e5fbde75.tar.gz
talos-petitboot-fd3ec2d5f95590cf5fbfe065a8334b90e5fbde75.zip
More robusst comment-ignoring in kboot parser.
The previous check wouldn't ignore comment lines that contain an '='. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--devices/kboot-parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/devices/kboot-parser.c b/devices/kboot-parser.c
index b845d84..4485759 100644
--- a/devices/kboot-parser.c
+++ b/devices/kboot-parser.c
@@ -171,6 +171,9 @@ static void parse_buf(struct device *dev, char *buf)
if (name == NULL || param_is_ignored(name))
continue;
+ if (*name == '#')
+ continue;
+
memset(&opt, 0, sizeof(opt));
opt.name = strdup(name);
OpenPOWER on IntegriCloud