From: Roy Marples Date: Mon, 22 Oct 2007 15:03:01 +0000 (+0000) Subject: If compiled without info support, don't tell the script about the info file. X-Git-Tag: v3.2.3~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85132e2dccd832d7b8e22d6f0f288034a955ef1e;p=thirdparty%2Fdhcpcd.git If compiled without info support, don't tell the script about the info file. --- diff --git a/configure.c b/configure.c index d52ded5e..274716f7 100644 --- a/configure.c +++ b/configure.c @@ -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)