From 051d9b0a6be0f49660be533d0c5616ae7c792931 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 14 Oct 2013 08:38:04 +0200 Subject: [PATCH] pptp: use /sbin/ip Signed-off-by: Stephan Raue --- .../pptp/patches/pptp-1.7.2-use-sbin-ip.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 packages/network/pptp/patches/pptp-1.7.2-use-sbin-ip.patch diff --git a/packages/network/pptp/patches/pptp-1.7.2-use-sbin-ip.patch b/packages/network/pptp/patches/pptp-1.7.2-use-sbin-ip.patch new file mode 100644 index 0000000000..17b09a5439 --- /dev/null +++ b/packages/network/pptp/patches/pptp-1.7.2-use-sbin-ip.patch @@ -0,0 +1,36 @@ +commit aa1536de73a383ca64f2bd325ec2844679a269c2 +Author: Stefan Saraev +Date: Sat Oct 12 18:08:59 2013 +0300 + + use /sbin/ip for routing + +diff --git a/routing.c b/routing.c +index ab20a03..7fb4277 100644 +--- a/routing.c ++++ b/routing.c +@@ -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); + }