]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We should only check duid file if duid enabled.
authorRoy Marples <roy@marples.name>
Fri, 2 May 2008 08:25:21 +0000 (08:25 +0000)
committerRoy Marples <roy@marples.name>
Fri, 2 May 2008 08:25:21 +0000 (08:25 +0000)
dhcpcd.c

index 3565aa4e99665079b3015517a268618f865a93c2..789902e84ed3327eeed4572b8eadbd2e8f6fd29d 100644 (file)
--- 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));