]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Always warn if we cannot open the config file.
authorRoy Marples <roy@marples.name>
Tue, 29 Nov 2016 19:48:04 +0000 (19:48 +0000)
committerRoy Marples <roy@marples.name>
Tue, 29 Nov 2016 19:48:04 +0000 (19:48 +0000)
if-options.c

index f08d671e583b4e6609f8eb2556e06c38a5210623..eba1a086ab6daeb9f5e980f5a475a149ad696867 100644 (file)
@@ -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;
        }