summary refs log tree commit diff
path: root/parse.y
diff options
context:
space:
mode:
authorokan <okan>2008-06-14 21:51:00 +0000
committerokan <okan>2008-06-14 21:51:00 +0000
commit9d9c61b8f6cd0bdf57c925a27de584e697743981 (patch)
tree560b9913eff46d2f4a70b11bf7a2ecd9f80805dc /parse.y
parentbdcbbe7f53ce140df98f06a31dfe5cb19a40d708 (diff)
downloadcwm-9d9c61b8f6cd0bdf57c925a27de584e697743981.tar.gz
cwm-9d9c61b8f6cd0bdf57c925a27de584e697743981.tar.xz
cwm-9d9c61b8f6cd0bdf57c925a27de584e697743981.zip
slightly alter the semantics of config files:
 - if no config file, continue silently and apply defaults
 - if config file, parse and move on
 - if config file specified but not found, error out

ok oga@
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 1b054bf..3181c6d 100644
--- a/parse.y
+++ b/parse.y
@@ -441,7 +441,8 @@ pushfile(const char *name)
 	nfile->name = xstrdup(name);
 
 	if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
-		warn("%s", nfile->name);
+		if (errno != ENOENT)
+			warn("%s", nfile->name);
 		free(nfile->name);
 		free(nfile);
 		return (NULL);