conntrackd: Don't hardcode libs dir path
PATCH 1/1 conntrackd: Don't hardcode libs dir path
Use CONNTRACKD_LIB_DIR instead of hardcoded path.
Signed-off-by Hani Benhabiles <[email protected]>
---
src/read_config_yy.y +1 -2
@@ -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);
Quoted 1 line · Hani Benhabiles
Use
CONNTRACKD_LIB_DIRinstead of hardcoded path.
Applied, thanks.