diff options
| author | John Klug <john.klug@multitech.com> | 2017-04-25 15:48:35 -0500 |
|---|---|---|
| committer | John Klug <john.klug@multitech.com> | 2017-05-23 15:22:10 -0500 |
| commit | f911d680a7b085b29d2bdd87cae0381985a6fc39 (patch) | |
| tree | 05eb35a99723c814dd21c2a4a6dfb6ed3f13b53d /recipes-connectivity/ppp/ppp-2.4.7/pppd-resolv-varrun.patch | |
| parent | 0628de62996b4193a1106c8b1b5ce7ca6bb8bcf4 (diff) | |
| download | meta-mlinux-f911d680a7b085b29d2bdd87cae0381985a6fc39.tar.gz meta-mlinux-f911d680a7b085b29d2bdd87cae0381985a6fc39.tar.bz2 meta-mlinux-f911d680a7b085b29d2bdd87cae0381985a6fc39.zip | |
Use openembedded ppp
Diffstat (limited to 'recipes-connectivity/ppp/ppp-2.4.7/pppd-resolv-varrun.patch')
| -rw-r--r-- | recipes-connectivity/ppp/ppp-2.4.7/pppd-resolv-varrun.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/recipes-connectivity/ppp/ppp-2.4.7/pppd-resolv-varrun.patch b/recipes-connectivity/ppp/ppp-2.4.7/pppd-resolv-varrun.patch deleted file mode 100644 index a72414f..0000000 --- a/recipes-connectivity/ppp/ppp-2.4.7/pppd-resolv-varrun.patch +++ /dev/null @@ -1,45 +0,0 @@ -The patch comes from OpenEmbedded -Rebased for ppp-2.4.5. Dongxiao Xu <dongxiao.xu@intel.com> - -Upstream-Status: Inappropriate [embedded specific] - -diff -ruN ppp-2.4.5-orig/pppd/ipcp.c ppp-2.4.5/pppd/ipcp.c ---- ppp-2.4.5-orig/pppd/ipcp.c 2010-06-30 15:51:12.050166398 +0800 -+++ ppp-2.4.5/pppd/ipcp.c 2010-06-30 17:02:33.930393283 +0800 -@@ -55,6 +55,8 @@ - #include <sys/socket.h> - #include <netinet/in.h> - #include <arpa/inet.h> -+#include <sys/stat.h> -+#include <unistd.h> - - #include "pppd.h" - #include "fsm.h" -@@ -2095,6 +2097,14 @@ - u_int32_t peerdns1, peerdns2; - { - FILE *f; -+ struct stat dirinfo; -+ -+ if(stat(_PATH_OUTDIR, &dirinfo)) { -+ if(mkdir(_PATH_OUTDIR, 0775)) { -+ error("Failed to create directory %s: %m", _PATH_OUTDIR); -+ return; -+ } -+ } - - f = fopen(_PATH_RESOLV, "w"); - if (f == NULL) { -diff -ruN ppp-2.4.5-orig/pppd/pathnames.h ppp-2.4.5/pppd/pathnames.h ---- ppp-2.4.5-orig/pppd/pathnames.h 2010-06-30 15:51:12.043682063 +0800 -+++ ppp-2.4.5/pppd/pathnames.h 2010-06-30 17:03:20.594371055 +0800 -@@ -30,7 +30,8 @@ - #define _PATH_TTYOPT _ROOT_PATH "/etc/ppp/options." - #define _PATH_CONNERRS _ROOT_PATH "/etc/ppp/connect-errors" - #define _PATH_PEERFILES _ROOT_PATH "/etc/ppp/peers/" --#define _PATH_RESOLV _ROOT_PATH "/etc/ppp/resolv.conf" -+#define _PATH_OUTDIR _ROOT_PATH _PATH_VARRUN "/ppp" -+#define _PATH_RESOLV _PATH_OUTDIR "/resolv.conf" - - #define _PATH_USEROPT ".ppprc" - #define _PATH_PSEUDONYM ".ppp_pseudonym" |
