diff options
author | okan | 2008-06-14 21:51:00 +0000 |
---|---|---|
committer | okan | 2008-06-14 21:51:00 +0000 |
commit | 1828cb75bd4052187e7a3640de9c0060b54b210d (patch) | |
tree | ebb171a56675be2169e7ccb0321ac58985685da4 /parse.y | |
parent | c13dbbd835133e5160bdeefa8251adef63c56a9e (diff) | |
download | cwm-1828cb75bd4052187e7a3640de9c0060b54b210d.tar.gz |
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.y | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.10 2008/06/14 21:48:54 okan Exp $ */ +/* $OpenBSD: parse.y,v 1.11 2008/06/14 21:51:00 okan Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -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); |