diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2010-11-02 16:31:41 -0300 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-11-04 23:25:51 +0100 |
commit | 7c949cb2a23791e8baeeac32ae3d90869b07617d (patch) | |
tree | 9dbdb992f135b0f1e8c577012ef299673d993c7e /package/pptp-linux/pptp-linux-1.7.2-ip-path.patch | |
parent | 84c944d6c36ddbdf1f64a324aa465c5b17184980 (diff) |
pptp: bump to version 1.7.2, convert to gentargets
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/pptp-linux/pptp-linux-1.7.2-ip-path.patch')
-rw-r--r-- | package/pptp-linux/pptp-linux-1.7.2-ip-path.patch | 44 |
1 files changed, 44 insertions, 0 deletions
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 <gustavo@zacarias.com.ar> +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 <gustavo@zacarias.com.ar> +--- + 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 + |