From: jamal Date: Thu, 8 Mar 2007 01:40:25 +0000 (-0500) Subject: Old bug on tc X-Git-Tag: v2.6.23-071016~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aa446896e2085e9993d9c299d62fe477ff3cf95;p=thirdparty%2Fiproute2.git 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 --- diff --git a/tc/m_ipt.c b/tc/m_ipt.c index 01914dc63..38d2311ab 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);