head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.30 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.28 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.26 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.24 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.22 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.20 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.18 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.16 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.14 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.12 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.10 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.8 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.6 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.4 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.2 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.2.0.8 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.6 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.4 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.2 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.1.0.24 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.22 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.20 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.18 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.16 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.14 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.3 date 2006.11.01.15.17.14; author martin; state dead; branches; next 1.2; 1.2 date 2005.11.03.22.49.41; author rillig; state Exp; branches; next 1.1; 1.1 date 2001.12.07.18.35.51; author martin; state Exp; branches; next ; desc @@ 1.3 log @Update rp-pppoe to 3.8: various internal changes, some of them bogus and reverted by patches, some of them were already present in (now removed) patches; plus: - Changed the names of commands from adsl-* to pppoe-* to more logically name the scripts. - Make the userland pppoe daemon run as "nobody" if possible, once session has started. - Make userland pppoe program somewhat safe if it is installed SUID or SGID. Note that I still do *NOT* recommend a SUID/SGID pppoe. - Fix long-standing bug in pppoe-server that passed arguments to pppd in the wrong order. @ text @$NetBSD: patch-ae,v 1.2 2005/11/03 22:49:41 rillig Exp $ --- src/pppoe-server.c.orig Fri Sep 14 21:18:53 2001 +++ src/pppoe-server.c Fri Dec 7 19:24:14 2001 @@@@ -25,7 +25,7 @@@@ #define _BSD_SOURCE 1 /* for gethostname */ #include "pppoe-server.h" -#include "md5.h" +#include #ifdef HAVE_SYSLOG_H #include @@@@ -1249,7 +1249,7 @@@@ if (addressPoolFname) { NumSessionSlots = parseAddressPool(addressPoolFname, 0); if (CheckPoolSyntax) { - printf("%d\n", NumSessionSlots); + printf("%d\n", (int)NumSessionSlots); exit(0); } } @@@@ -1674,7 +1674,7 @@@@ } if (PassUnitOptionToPPPD) { argv[c++] = "unit"; - sprintf(buffer, "%d", ntohs(session->sess) - 1 - SessOffset); + sprintf(buffer, "%d", ntohs(session->sess) - 1 - (int)SessOffset); argv[c++] = buffer; } argv[c++] = NULL; @@@@ -1747,7 +1747,7 @@@@ argv[c++] = "default-asyncmap"; if (PassUnitOptionToPPPD) { argv[c++] = "unit"; - sprintf(buffer, "%d", ntohs(session->sess) - 1 - SessOffset); + sprintf(buffer, "%d", ntohs(session->sess) - 1 - (int)SessOffset); argv[c++] = buffer; } argv[c++] = NULL; @ 1.2 log @Fixed wrong use of WRKSRC. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.1 2001/12/07 18:35:51 martin Exp $ @ 1.1 log @Fix some format string bugs and make pppoe-server use our libc md5 implementation. The md5 included in this pkg is severly broken on 64bit machines. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- pppoe-server.c.orig Fri Sep 14 21:18:53 2001 +++ pppoe-server.c Fri Dec 7 19:24:14 2001 @