From fa46736013fa1e3df1508b1f67b495ce45daf94a Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Mon, 11 Sep 2017 14:50:06 +0200 Subject: [PATCH] dhcp: dhclient: fix daemon start when dhcp-timeout is specified A typo in the new dhcp-timeout option caused the dhclient daemon to exit with error when the dhcp-timeout option was specified. This prevents dhcp connection to be upped. Fixes: 82ef497cc9e2728e73cb0426efbae85c83bec3fe --- src/dhcp/nm-dhcp-dhclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhcp/nm-dhcp-dhclient.c b/src/dhcp/nm-dhcp-dhclient.c index f9b6f879cd..73d53a4f47 100644 --- a/src/dhcp/nm-dhcp-dhclient.c +++ b/src/dhcp/nm-dhcp-dhclient.c @@ -453,7 +453,7 @@ dhclient_start (NMDhcpClient *client, timeout = nm_dhcp_client_get_timeout (client); if (timeout >= 60) { timeout = timeout < G_MAXINT32 ? timeout + 1 : G_MAXINT32; - g_ptr_array_add (argv, (gpointer) "-timeout"); + g_ptr_array_add (argv, (gpointer) "--timeout"); g_ptr_array_add (argv, (gpointer) nm_sprintf_buf (timeout_str, "%u", (unsigned) timeout)); }