]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
Old bug on tc
authorjamal <hadi@cyberus.ca>
Thu, 8 Mar 2007 01:40:25 +0000 (20:40 -0500)
committerStephen Hemminger <shemminger@linux-foundation.org>
Tue, 13 Mar 2007 21:43:24 +0000 (14:43 -0700)
> 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 <hadi@cyberus.ca>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
tc/m_ipt.c

index 01914dc636b3a61fb36c1335d3dfdeca4ac5cb16..38d2311ab1cdd97d41547ea84b3067d73b6239a3 100644 (file)
@@ -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);