From ba2ba5c011a3fb13cba538296b70888dd0fb129b Mon Sep 17 00:00:00 2001 From: Matt Gumbel Date: Fri, 4 Jan 2013 09:53:42 -0800 Subject: [PATCH] Fix dhcpcd startup when net.hostname is not set Commit 62d6f74 swapped p2p_interface and DHCP_CONFIG_PATH erroneously. This reverts them to their correct ordering and makes dhcpcd startup work again. Change-Id: Iea033a7e0dad98bb2a63fb39755330675cfbb0ab Signed-off-by: Matt Gumbel --- libnetutils/dhcp_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetutils/dhcp_utils.c b/libnetutils/dhcp_utils.c index d0ca90acb..b4caaf977 100644 --- a/libnetutils/dhcp_utils.c +++ b/libnetutils/dhcp_utils.c @@ -211,7 +211,7 @@ int dhcp_do_request(const char *interface, p2p_interface, DHCP_CONFIG_PATH, prop_value, interface); else snprintf(daemon_cmd, sizeof(daemon_cmd), "%s_%s:-f %s %s", DAEMON_NAME, - DHCP_CONFIG_PATH, p2p_interface, interface); + p2p_interface, DHCP_CONFIG_PATH, interface); memset(prop_value, '\0', PROPERTY_VALUE_MAX); property_set(ctrl_prop, daemon_cmd); if (wait_for_property(daemon_prop_name, desired_status, 10) < 0) {