From 9aa446896e2085e9993d9c299d62fe477ff3cf95 Mon Sep 17 00:00:00 2001 From: jamal Date: Wed, 7 Mar 2007 20:40:25 -0500 Subject: [PATCH] Old bug on tc > It is in current git tree. A small fix attached after some testing. Please dont forget to apply my other patches. When you have them let me know so i can do some more testing. cheers, jamal [TC] Get iptables path selection to set correct path A small tweak on top of Stephens patch Signed-off-by: Jamal Hadi Salim Signed-off-by: Stephen Hemminger --- tc/m_ipt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/m_ipt.c b/tc/m_ipt.c index 01914dc6..38d2311a 100644 --- a/tc/m_ipt.c +++ b/tc/m_ipt.c @@ -247,7 +247,7 @@ get_target_name(const char *name) } } - sprintf(path, lib_dir, "/libipt_%s.so", new_name); + sprintf(path, "%s/libipt_%s.so",lib_dir, new_name); handle = dlopen(path, RTLD_LAZY); if (!handle) { sprintf(path, lib_dir, "/libipt_%s.so", lname);