8e8f9a7
From c8cec9f3f9c34aa824e652a01ae08e7e7a621daa Mon Sep 17 00:00:00 2001
8e8f9a7
From: Tomas Hozza <thozza@redhat.com>
8e8f9a7
Date: Wed, 26 Sep 2012 10:26:55 +0200
8e8f9a7
Subject: [PATCH] Corrected paths to hypervkvpd external scripts.
8e8f9a7
8e8f9a7
Corrected paths to hypervkvpd external scripts, because
8e8f9a7
they will be located in "/usr/libexec/hypervkvpd".
8e8f9a7
---
8e8f9a7
 hv_kvp_daemon.c | 6 +++---
8e8f9a7
 1 file changed, 3 insertions(+), 3 deletions(-)
8e8f9a7
8e8f9a7
diff --git a/hv_kvp_daemon.c b/hv_kvp_daemon.c
8e8f9a7
index 5959aff..3ea3af2 100644
8e8f9a7
--- a/hv_kvp_daemon.c
8e8f9a7
+++ b/hv_kvp_daemon.c
8e8f9a7
@@ -812,7 +812,7 @@ static void kvp_get_ipconfig_info(char *if_name,
8e8f9a7
 	 * .
8e8f9a7
 	 */
8e8f9a7
 
8e8f9a7
-	sprintf(cmd, "%s",  "hv_get_dns_info");
8e8f9a7
+	sprintf(cmd, "%s",  "/usr/libexec/hypervkvpd/hv_get_dns_info");
8e8f9a7
 
8e8f9a7
 	/*
8e8f9a7
 	 * Execute the command to gather DNS info.
8e8f9a7
@@ -829,7 +829,7 @@ static void kvp_get_ipconfig_info(char *if_name,
8e8f9a7
 	 * Enabled: DHCP enabled.
8e8f9a7
 	 */
8e8f9a7
 
8e8f9a7
-	sprintf(cmd, "%s %s", "hv_get_dhcp_info", if_name);
8e8f9a7
+	sprintf(cmd, "%s %s", "/usr/libexec/hypervkvpd/hv_get_dhcp_info", if_name);
8e8f9a7
 
8e8f9a7
 	file = popen(cmd, "r");
8e8f9a7
 	if (file == NULL)
8e8f9a7
@@ -1331,7 +1331,7 @@ setval_done:
8e8f9a7
 	 * invoke the external script to do its magic.
8e8f9a7
 	 */
8e8f9a7
 
8e8f9a7
-	snprintf(cmd, sizeof(cmd), "%s %s", "hv_set_ifconfig", if_file);
8e8f9a7
+	snprintf(cmd, sizeof(cmd), "%s %s", "/usr/libexec/hypervkvpd/hv_set_ifconfig", if_file);
8e8f9a7
 	if (system(cmd)) {
8e8f9a7
 		syslog(LOG_ERR, "Failed to execute cmd '%s'; error: %d %s",
8e8f9a7
 				cmd, errno, strerror(errno));
8e8f9a7
-- 
8e8f9a7
1.7.11.4
8e8f9a7