Blame SOURCES/hypervkvpd-0-corrected_paths_to_external_scripts.patch

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