From: Roy Marples Date: Fri, 2 May 2008 08:25:21 +0000 (+0000) Subject: We should only check duid file if duid enabled. X-Git-Tag: v4.0.2~439 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd6039ee0272fd8e949ec77ac6017dd50e905074;p=thirdparty%2Fdhcpcd.git We should only check duid file if duid enabled. --- diff --git a/dhcpcd.c b/dhcpcd.c index 3565aa4e..789902e8 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -423,10 +423,12 @@ main(int argc, char **argv) /* If the duid file exists, then enable duid by default * This means we don't break existing clients that easily :) */ +# ifdef ENABLE_DUID if ((f = fopen(DUIDFILE, "r"))) { options->options |= DHCPCD_DUID; fclose(f); } +# endif #endif gethostname(options->hostname, sizeof(options->hostname));