diff options
author | Alin Năstac <mrness@gentoo.org> | 2005-01-09 13:54:23 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2005-01-09 13:54:23 +0000 |
commit | 26bafd02c68482cc8d7836daef4a98f57fa673cd (patch) | |
tree | 8e8f11136c64e3d6aa395f48cef62f1acdb29f50 /net-dialup/ppp/files | |
parent | Stable on x86, dodoc changes from bug #77218. (Manifest recommit) (diff) | |
download | gentoo-2-26bafd02c68482cc8d7836daef4a98f57fa673cd.tar.gz gentoo-2-26bafd02c68482cc8d7836daef4a98f57fa673cd.tar.bz2 gentoo-2-26bafd02c68482cc8d7836daef4a98f57fa673cd.zip |
add fixes from upstream CVS (#58275 and #74093)
Diffstat (limited to 'net-dialup/ppp/files')
-rw-r--r-- | net-dialup/ppp/files/2.4.3/fixes-from-upstream-cvs.patch | 132 | ||||
-rw-r--r-- | net-dialup/ppp/files/digest-ppp-2.4.3-r1 | 3 |
2 files changed, 135 insertions, 0 deletions
diff --git a/net-dialup/ppp/files/2.4.3/fixes-from-upstream-cvs.patch b/net-dialup/ppp/files/2.4.3/fixes-from-upstream-cvs.patch new file mode 100644 index 000000000000..dc18bb573d62 --- /dev/null +++ b/net-dialup/ppp/files/2.4.3/fixes-from-upstream-cvs.patch @@ -0,0 +1,132 @@ +Patches from upstream CVS for bug IDs 1103-1106. +diff -Nru ppp-2.4.3.orig/pppd/auth.c ppp-2.4.3/pppd/auth.c +--- ppp-2.4.3.orig/pppd/auth.c 2004-11-12 12:30:51.000000000 +0200 ++++ ppp-2.4.3/pppd/auth.c 2005-01-09 15:42:42.938985272 +0200 +@@ -68,7 +68,7 @@ + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +-#define RCSID "$Id: fixes-from-upstream-cvs.patch,v 1.1 2005/01/09 13:54:23 mrness Exp $" ++#define RCSID "$Id: fixes-from-upstream-cvs.patch,v 1.1 2005/01/09 13:54:23 mrness Exp $" + + #include <stdio.h> + #include <stddef.h> +@@ -532,9 +532,12 @@ + link_required(unit) + int unit; + { ++ char *msg; ++ + new_phase(PHASE_SERIALCONN); + + devfd = the_channel->connect(); ++ msg = "Connect script failed"; + if (devfd < 0) + goto fail; + +@@ -547,6 +550,7 @@ + * gives us. Thus we don't need the tdb_writelock/tdb_writeunlock. + */ + fd_ppp = the_channel->establish_ppp(devfd); ++ msg = "ppp establishment failed"; + if (fd_ppp < 0) { + status = EXIT_FATAL_ERROR; + goto disconnect; +@@ -581,6 +585,8 @@ + if (the_channel->cleanup) + (*the_channel->cleanup)(); + ++ /* XXX not nice here but needs to go somewhere... */ ++ lcp_close(0, msg); + } + + /* +diff -Nru ppp-2.4.3.orig/pppd/options.c ppp-2.4.3/pppd/options.c +--- ppp-2.4.3.orig/pppd/options.c 2005-01-09 15:41:20.733482408 +0200 ++++ ppp-2.4.3/pppd/options.c 2005-01-09 15:43:57.593636040 +0200 +@@ -40,7 +40,7 @@ + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +-#define RCSID "$Id: fixes-from-upstream-cvs.patch,v 1.1 2005/01/09 13:54:23 mrness Exp $" ++#define RCSID "$Id: fixes-from-upstream-cvs.patch,v 1.1 2005/01/09 13:54:23 mrness Exp $" + + #include <ctype.h> + #include <stdio.h> +@@ -58,12 +58,12 @@ + #ifdef PPP_FILTER + #include <pcap.h> + /* +- * DLT_PPP_WITH_DIRECTION is in current libpcap cvs, and should be in ++ * DLT_PPP_WITHDIRECTION is in current libpcap cvs, and should be in + * libpcap-0.8.4. Until that is released, use DLT_PPP - but that means + * we lose the inbound and outbound qualifiers. + */ +-#ifndef DLT_PPP_WITH_DIRECTION +-#define DLT_PPP_WITH_DIRECTION DLT_PPP ++#ifndef DLT_PPP_WITHDIRECTION ++#define DLT_PPP_WITHDIRECTION DLT_PPP + #endif + #endif + +@@ -1455,13 +1455,13 @@ + char **argv; + { + pcap_t *pc; +- int ret = 0; ++ int ret = 1; + +- pc = pcap_open_dead(DLT_PPP_WITH_DIRECTION, 65535); ++ pc = pcap_open_dead(DLT_PPP_WITHDIRECTION, 65535); + if (pcap_compile(pc, &pass_filter, *argv, 1, netmask) == -1) { + option_error("error in pass-filter expression: %s\n", + pcap_geterr(pc)); +- ret = 1; ++ ret = 0; + } + pcap_close(pc); + +@@ -1476,13 +1476,13 @@ + char **argv; + { + pcap_t *pc; +- int ret = 0; ++ int ret = 1; + +- pc = pcap_open_dead(DLT_PPP_WITH_DIRECTION, 65535); ++ pc = pcap_open_dead(DLT_PPP_WITHDIRECTION, 65535); + if (pcap_compile(pc, &active_filter, *argv, 1, netmask) == -1) { + option_error("error in active-filter expression: %s\n", + pcap_geterr(pc)); +- ret = 1; ++ ret = 0; + } + pcap_close(pc); + +diff -Nru ppp-2.4.3.orig/pppd/tty.c ppp-2.4.3/pppd/tty.c +--- ppp-2.4.3.orig/pppd/tty.c 2004-11-13 14:07:29.000000000 +0200 ++++ ppp-2.4.3/pppd/tty.c 2005-01-09 15:42:42.937985424 +0200 +@@ -68,7 +68,7 @@ + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +-#define RCSID "$Id: fixes-from-upstream-cvs.patch,v 1.1 2005/01/09 13:54:23 mrness Exp $" ++#define RCSID "$Id: fixes-from-upstream-cvs.patch,v 1.1 2005/01/09 13:54:23 mrness Exp $" + + #include <stdio.h> + #include <ctype.h> +@@ -755,14 +755,6 @@ + close(pty_master); + pty_master = -1; + } +- if (pty_slave >= 0) { +- close(pty_slave); +- pty_slave = -1; +- } +- if (real_ttyfd >= 0) { +- close(real_ttyfd); +- real_ttyfd = -1; +- } + ttyfd = -1; + if (got_sigterm) + asked_to_quit = 1; diff --git a/net-dialup/ppp/files/digest-ppp-2.4.3-r1 b/net-dialup/ppp/files/digest-ppp-2.4.3-r1 new file mode 100644 index 000000000000..9382fda204af --- /dev/null +++ b/net-dialup/ppp/files/digest-ppp-2.4.3-r1 @@ -0,0 +1,3 @@ +MD5 848f6c3cafeb6074ffeb293c3af79b7c ppp-2.4.3.tar.gz 688092 +MD5 8453a29338cb96dd0c0dda35d3e872a4 ppp-2.4.3-mppe-mppc-1.1.patch.gz 11441 +MD5 9d2f3febf510c5b0cbb4dacba713a217 ppp-dhcpc.tgz 33497 |