From: Roy Marples Date: Mon, 7 Jan 2008 20:48:32 +0000 (+0000) Subject: Always relaunch with the full path. X-Git-Tag: v3.2.3~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=772f18a5e3d334ac613760dde03c753aafc7c08d;p=thirdparty%2Fdhcpcd.git Always relaunch with the full path. --- diff --git a/client.c b/client.c index dfd86a3a..bdfb1193 100644 --- a/client.c +++ b/client.c @@ -150,7 +150,8 @@ static pid_t daemonise (int *pidfd) /* We need to add --daemonise to our options */ argv = xmalloc (sizeof (char *) * (dhcpcd_argc + 4)); - for (i = 0; i < dhcpcd_argc; i++) + argv[0] = dhcpcd; + for (i = 1; i < dhcpcd_argc; i++) argv[i] = dhcpcd_argv[i]; argv[i] = (char *) "--daemonised"; if (dhcpcd_skiproutes) {