summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-08-01 19:36:01 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-01 19:38:01 +0200
commitf9ad41077c473884f33c6677f81119614d5a8eb2 (patch)
tree6dc50dc4965edcc50280d25493ea7da702562ef0 /src
parentff5eb25aa6963536e3f640c5c38c341ce02809bb (diff)
downloadconntrack-tools-f9ad41077c473884f33c6677f81119614d5a8eb2.tar.gz
conntrack-tools-f9ad41077c473884f33c6677f81119614d5a8eb2.zip
nfct: helper: use CONNTRACKD_LIB_DIR variable set during configuration
Instead of hardcoded path to /usr/lib/conntrack-tools/ which might not be true if options like --prefix with different location is passed to conntrack. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/nfct-extensions/helper.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nfct-extensions/helper.c b/src/nfct-extensions/helper.c
index e8f85bb..f91fc41 100644
--- a/src/nfct-extensions/helper.c
+++ b/src/nfct-extensions/helper.c
@@ -202,9 +202,7 @@ int nfct_cmd_helper_add(int argc, char *argv[])
return -1;
}
- /* XXX use prefix defined in configure.ac. */
- helper = helper_find("/usr/lib/conntrack-tools",
- argv[3], l4proto, RTLD_LAZY);
+ helper = helper_find(CONNTRACKD_LIB_DIR, argv[3], l4proto, RTLD_LAZY);
if (helper == NULL) {
nfct_perror("that helper is not supported");
return -1;
@@ -558,9 +556,7 @@ int nfct_cmd_helper_disable(int argc, char *argv[])
return -1;
}
- /* XXX use prefix defined in configure.ac. */
- helper = helper_find("/usr/lib/conntrack-tools",
- argv[3], l4proto, RTLD_LAZY);
+ helper = helper_find(CONNTRACKD_LIB_DIR, argv[3], l4proto, RTLD_LAZY);
if (helper == NULL) {
nfct_perror("that helper is not supported");
return -1;