summaryrefslogtreecommitdiffstats
path: root/network/pptp/routing.c.patch
diff options
context:
space:
mode:
author Robby Workman <rworkman@slackbuilds.org>2010-05-23 03:32:44 -0500
committer Robby Workman <rworkman@slackbuilds.org>2010-05-23 23:21:46 -0500
commit38858efa6be7d4cb5dfdaba65bc9a549783ca480 (patch)
treec5f75ecfc24f404ec3e482803dad1a80e26cce5f /network/pptp/routing.c.patch
parent0065eaba19013bbc48ba2b6b95f4ec2d67301c3b (diff)
downloadslackbuilds-38858efa6be7d4cb5dfdaba65bc9a549783ca480.tar.gz
slackbuilds-38858efa6be7d4cb5dfdaba65bc9a549783ca480.tar.xz
network/pptp: Misc. cleanup and added patch
Patch from 'mario' -- thanks! :-)
Diffstat (limited to 'network/pptp/routing.c.patch')
-rw-r--r--network/pptp/routing.c.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/network/pptp/routing.c.patch b/network/pptp/routing.c.patch
new file mode 100644
index 0000000000..45d2ca9c03
--- /dev/null
+++ b/network/pptp/routing.c.patch
@@ -0,0 +1,28 @@
+--- a/routing.c.ORIG 2008-05-14 08:33:55.000000000 +0200
++++ a/routing.c 2009-07-29 23:37:03.196933022 +0200
+@@ -55,7 +55,7 @@ regardless (not yet implemented).
+
+ void routing_init(char *ip) {
+ char buf[256];
+- snprintf(buf, 255, "/bin/ip route get %s", ip);
++ snprintf(buf, 255, "/sbin/ip route get %s", ip);
+ FILE *p = popen(buf, "r");
+ fgets(buf, 255, p);
+ /* TODO: check for failure of fgets */
+@@ -66,14 +66,14 @@ void routing_init(char *ip) {
+
+ void routing_start() {
+ char buf[256];
+- snprintf(buf, 255, "/bin/ip route replace %s", route);
++ snprintf(buf, 255, "/sbin/ip route replace %s", route);
+ FILE *p = popen(buf, "r");
+ pclose(p);
+ }
+
+ void routing_end() {
+ char buf[256];
+- snprintf(buf, 255, "/bin/ip route delete %s", route);
++ snprintf(buf, 255, "/sbin/ip route delete %s", route);
+ FILE *p = popen(buf, "r");
+ pclose(p);
+ }