Imported sources from subversion.

This commit is contained in:
Ricardo Martins
2013-07-13 17:19:22 +01:00
commit 12d63d1569
455 changed files with 69857 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
Use values exported from $(TOPDIR)/rules.mk for determining
the target system instead of the host configuration
--- a/configure
+++ b/configure
@@ -8,9 +8,9 @@ SYSCONF=/etc
# if [ -d /NextApps ]; then
# system="NeXTStep"
# else
- system=`uname -s`
- release=`uname -r`
- arch=`uname -m`
+ system=${UNAME_S:-`uname -s`}
+ release=${UNAME_R:-`uname -r`}
+ arch=${UNAME_M:-`uname -m`}
# fi
state="unknown"

View File

@@ -0,0 +1,12 @@
diff -Nru ppp-2.4.5.ori/pppd/pathnames.h ppp-2.4.5/pppd/pathnames.h
--- ppp-2.4.5.ori/pppd/pathnames.h 2009-11-16 22:26:07.000000000 +0000
+++ ppp-2.4.5/pppd/pathnames.h 2010-06-25 00:31:37.000000000 +0100
@@ -30,7 +30,7 @@
#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_RESOLV _ROOT_PATH "/tmp/resolv.conf"
#define _PATH_USEROPT ".ppprc"
#define _PATH_PSEUDONYM ".ppp_pseudonym"

View File

@@ -0,0 +1,12 @@
--- ppp-2.4.5.ori/pppd/main.c 2009-11-16 22:26:07.000000000 +0000
+++ ppp-2.4.5/pppd/main.c 2010-07-10 23:50:45.225155782 +0100
@@ -1571,7 +1571,8 @@
/* Executing in the child */
sys_close();
#ifdef USE_TDB
- tdb_close(pppdb);
+ if (pppdb != NULL)
+ tdb_close(pppdb);
#endif
/* make sure infd, outfd and errfd won't get tromped on below */