Blame SOURCES/kdenetwork-4.3.3-resolv-conf-path.patch

74b83a
diff -up kdenetwork-4.3.3/kppp/connect.cpp.resolv-conf-path kdenetwork-4.3.3/kppp/connect.cpp
74b83a
--- kdenetwork-4.3.3/kppp/connect.cpp.resolv-conf-path	2008-01-05 00:59:27.000000000 +0100
74b83a
+++ kdenetwork-4.3.3/kppp/connect.cpp	2009-11-23 14:42:15.629662654 +0100
74b83a
@@ -1491,7 +1491,7 @@ void addpeerdns() {
74b83a
   int fd, fd2;
74b83a
 
74b83a
   if((fd = Requester::rq->openResolv(O_WRONLY|O_APPEND)) >= 0) {
74b83a
-    if((fd2 = open("/etc/ppp/resolv.conf", O_RDONLY)) >= 0) {
74b83a
+    if((fd2 = open("/var/run/ppp/resolv.conf", O_RDONLY)) >= 0) {
74b83a
       char c;
74b83a
       int i = 0;
74b83a
       while(i++ < 100 && read(fd2, &c, 1) == 1) {
74b83a
@@ -1502,7 +1502,7 @@ void addpeerdns() {
74b83a
       }
74b83a
       close(fd2);
74b83a
     } else
74b83a
-      fprintf(stderr, "failed to read from /etc/ppp/resolv.conf\n");
74b83a
+      fprintf(stderr, "failed to read from /var/run/ppp/resolv.conf\n");
74b83a
     close(fd);
74b83a
   }
74b83a
   add_domain(gpppdata.domain());