From 7c949cb2a23791e8baeeac32ae3d90869b07617d Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Tue, 2 Nov 2010 16:31:41 -0300 Subject: pptp: bump to version 1.7.2, convert to gentargets Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- package/pptp-linux/pptp-linux-1.7.2-ip-path.patch | 44 +++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 package/pptp-linux/pptp-linux-1.7.2-ip-path.patch (limited to 'package/pptp-linux/pptp-linux-1.7.2-ip-path.patch') diff --git a/package/pptp-linux/pptp-linux-1.7.2-ip-path.patch b/package/pptp-linux/pptp-linux-1.7.2-ip-path.patch new file mode 100644 index 000000000..6d8f3c8af --- /dev/null +++ b/package/pptp-linux/pptp-linux-1.7.2-ip-path.patch @@ -0,0 +1,44 @@ +From 00b9e2615191439a6c7db960d169129479ac633b Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias +Date: Thu, 21 Oct 2010 11:01:25 -0300 +Subject: [PATCH] The ip tool is in /sbin rather that /bin, fix it + + +Signed-off-by: Gustavo Zacarias +--- + routing.c | 6 +++--- + 1 files changed, 3 insertions(+), 3 deletions(-) + +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); + } +-- +1.7.2.2 + -- cgit v1.2.3