summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Giudici <fgiudici@redhat.com>2017-09-11 14:50:06 +0200
committerFrancesco Giudici <fgiudici@redhat.com>2017-09-11 14:52:51 +0200
commitfa46736013fa1e3df1508b1f67b495ce45daf94a (patch)
tree9a29f09bbff80e0f1805c4d6df9e3800a71aa9c3
parent7d00a96d235c149b8b03238c2b8269e050d01f4b (diff)
downloadNetworkManager-fa46736013fa1e3df1508b1f67b495ce45daf94a.tar.gz
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
-rw-r--r--src/dhcp/nm-dhcp-dhclient.c2
1 files changed, 1 insertions, 1 deletions
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));
}