Skip to contentSkip to conversation

conntrackd: Don't hardcode libs dir path

PATCH Applied Hani Benhabiles 2 participants 2 messages Oct 14, 2013 – Oct 15, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 conntrackd: Don't hardcode libs dir path

Use CONNTRACKD_LIB_DIR instead of hardcoded path.

---

src/read_config_yy.y +1 -2
index fa517bb..73fabbf 100644
@@ -1613,8 +1613,7 @@ helper_type: T_TYPE T_STRING T_STRING T_STRING '{' helper_type_list  '}'
 	}
 
 #ifdef BUILD_CTHELPER
-	/* XXX use configure.ac definitions. */
-	helper = helper_find("/usr/lib/conntrack-tools", $2, l4proto, RTLD_NOW);
+	helper = helper_find(CONNTRACKD_LIB_DIR, $2, l4proto, RTLD_NOW);
 	if (helper == NULL) {
 		print_err(CTD_CFG_ERROR, "Unknown `%s' helper", $2);
 		exit(EXIT_FAILURE);
maintainer Applied
#1 lore raw
Quoted 1 line · Hani Benhabiles

Use CONNTRACKD_LIB_DIR instead of hardcoded path.

Applied, thanks.