]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
If compiled without info support, don't tell the script about the info file.
authorRoy Marples <roy@marples.name>
Mon, 22 Oct 2007 15:03:01 +0000 (15:03 +0000)
committerRoy Marples <roy@marples.name>
Mon, 22 Oct 2007 15:03:01 +0000 (15:03 +0000)
configure.c

index d52ded5e99b0c54d6c59c53190e18d4f639288c4..274716f72f6a120e66e2c9c3ff5151b5e1fd15f9 100644 (file)
@@ -105,8 +105,13 @@ static void exec_script (const char *script, const char *infofile,
                return;
        }
 
+#ifdef ENABLE_INFO
        logger (LOG_DEBUG, "exec \"%s\" \"%s\" \"%s\"", script, infofile, arg);
        exec_cmd (script, infofile, arg, (char *) NULL);
+#else
+       logger (LOG_DEBUG, "exec \"%s\" \"\" \"%s\"", script, arg);
+       exec_cmd (script, "", arg, (char *) NULL);
+#endif
 }
 
 static int make_resolv (const char *ifname, const dhcp_t *dhcp)