]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Always relaunch with the full path.
authorRoy Marples <roy@marples.name>
Mon, 7 Jan 2008 20:48:32 +0000 (20:48 +0000)
committerRoy Marples <roy@marples.name>
Mon, 7 Jan 2008 20:48:32 +0000 (20:48 +0000)
client.c

index dfd86a3a081c2dca3b16f54c8dddf1c6afe200b5..bdfb11939e8b07c4631ac0c1304285d4938691d5 100644 (file)
--- 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) {