From: Roy Marples Date: Tue, 29 Nov 2016 19:48:04 +0000 (+0000) Subject: Always warn if we cannot open the config file. X-Git-Tag: v7.0.0-beta1~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62cb6de899da23d00aa45b25ce1dc94abf489ffd;p=thirdparty%2Fdhcpcd.git Always warn if we cannot open the config file. --- diff --git a/if-options.c b/if-options.c index f08d671e..eba1a086 100644 --- a/if-options.c +++ b/if-options.c @@ -2432,8 +2432,9 @@ read_config(struct dhcpcd_ctx *ctx, /* Parse our options file */ fp = fopen(ctx->cffile, "r"); if (fp == NULL) { - if (strcmp(ctx->cffile, CONFIG)) - logger(ctx, LOG_ERR, "fopen `%s': %m", ctx->cffile); + /* dhcpcd can continue without it, but no DNS options + * would be requested ... */ + logger(ctx, LOG_WARNING, "fopen `%s': %m", ctx->cffile); free(buf); return ifo; }