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@
This commit is contained in:
okan
2008-06-14 21:51:00 +00:00
parent bdcbbe7f53
commit 9d9c61b8f6
2 changed files with 9 additions and 2 deletions

View File

@@ -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);