]> git.pld-linux.org Git - packages/pptp.git/blame - pptp-ip.patch
- unified sf source URL
[packages/pptp.git] / pptp-ip.patch
CommitLineData
384f70b5
MB
1diff -ruNp pptp-1.7.2.orig/routing.c pptp-1.7.2/routing.c
2--- pptp-1.7.2.orig/routing.c 2008-05-14 08:33:55.000000000 +0200
3+++ pptp-1.7.2/routing.c 2011-03-05 18:23:02.923155932 +0100
4@@ -55,7 +55,7 @@ regardless (not yet implemented).
5
6 void routing_init(char *ip) {
7 char buf[256];
8- snprintf(buf, 255, "/bin/ip route get %s", ip);
9+ snprintf(buf, 255, "/sbin/ip route get %s", ip);
10 FILE *p = popen(buf, "r");
11 fgets(buf, 255, p);
12 /* TODO: check for failure of fgets */
13@@ -66,14 +66,14 @@ void routing_init(char *ip) {
14
15 void routing_start() {
16 char buf[256];
17- snprintf(buf, 255, "/bin/ip route replace %s", route);
18+ snprintf(buf, 255, "/sbin/ip route replace %s", route);
19 FILE *p = popen(buf, "r");
20 pclose(p);
21 }
22
23 void routing_end() {
24 char buf[256];
25- snprintf(buf, 255, "/bin/ip route delete %s", route);
26+ snprintf(buf, 255, "/sbin/ip route delete %s", route);
27 FILE *p = popen(buf, "r");
28 pclose(p);
29 }
This page took 0.026382 seconds and 4 git commands to generate.