History log of /openbsd-current/usr.sbin/pppd/main.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.56 08-Mar-2023 guenther

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.55 24-Oct-2021 deraadt

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.54 17-Mar-2016 krw

Last parameter to execl[e]() functions *must* be cast to a pointer.
Just NULL is not good practise as NULL is theoretically allowed to
be an integer rather than a pointer.

Use (char *)NULL consistently instead of scattering a few (char *)0
and (void *)NULL into the mix.

Prompted by and probably ok deraadt@ millert@ kettenis@

Definitely ok mestre@ ratchov@


Revision tags: OPENBSD_5_9_BASE
# 1.53 06-Dec-2015 tobias

Use __progname instead of manually handling argv[0].

ok deraadt, mmcc, tedu


# 1.52 26-Oct-2015 deraadt

stop saving a pidfile; ok jung zhuk


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.51 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


# 1.50 08-Oct-2014 deraadt

easy obvious use of reallocarray(); ok doug


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.49 30-Apr-2011 nicm

Remove some unused code, from Michael W Bombardieri. ok yasuoka


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.48 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.47 02-Sep-2007 deraadt

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg


Revision tags: OPENBSD_4_2_BASE
# 1.46 04-Jun-2007 henning

bye bye ipx


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.45 03-May-2005 djm

setres[ug]id; ok millert@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.44 09-Feb-2004 canacar

Remove unused %r (recursive) format option. ok millert@


# 1.43 08-Feb-2004 deraadt

amd64 needs the same hack as powerpc; but this code really needs to be
deleted/replaced. anyone want to step up?


Revision tags: OPENBSD_3_4_BASE
# 1.42 25-Apr-2003 deraadt

comment cleanup


# 1.41 14-Apr-2003 deraadt

obvious spring cleanup


# 1.40 04-Apr-2003 deraadt

strlcpy and snprintf; various people ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.39 29-Jul-2002 millert

Replace an instance of chmod() with fchmod()


# 1.38 01-Jul-2002 deraadt

license update of CMU parts. due to communication with wcw+@andrew.cmu.edu,
pushed for by tygs@netcologne.de. Apparently we also now known how to talk
to the lawyers there, if we were so mad. Note that a few other copyright
issues in pppd still remain, so this does not close this story.


# 1.37 26-May-2002 deraadt

pid_t cleanup


# 1.36 08-May-2002 deraadt

be even more clear


# 1.35 06-May-2002 deraadt

do not install a SIGSEGV handler


Revision tags: OPENBSD_3_1_BASE
# 1.34 19-Feb-2002 millert

branches: 1.34.2;
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.33 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.32 05-Nov-2001 deraadt

some syslog_r uses in signal handlers


Revision tags: OPENBSD_3_0_BASE
# 1.31 15-May-2001 deraadt

branches: 1.31.2;
the signal handlers can many illegal functions. try to at least be cautious.
parts from mickey, parts from me.


Revision tags: OPENBSD_2_9_BASE
# 1.30 09-Mar-2001 deraadt

exit(-#) is wrong


Revision tags: OPENBSD_2_8_BASE
# 1.29 15-Sep-2000 deraadt

check return value for setenv(3) for failure, and deal appropriately


Revision tags: OPENBSD_2_7_BASE
# 1.28 12-Feb-2000 deraadt

handle direct lines correctly; rees


Revision tags: OPENBSD_2_6_BASE
# 1.27 06-Aug-1999 deraadt

uid_t and gid_t, and use %u


# 1.26 03-May-1999 mickey

drop packets silently while the link is down, which is a better approximation
to the real networks, ie simulating an open wire w/ tokens falling down
angelos@ ok


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.25 12-Jul-1998 angelos

Implement demand_drop() for demand mode pppd; try to avoid mbuf
exhaustion while setting up a connection.


# 1.24 10-Jul-1998 deraadt

do not syslog() with "\n"; skipped smtpd/named/ipmon; 12 minutes of dabbling


# 1.23 09-Jul-1998 deraadt

hostnames are MAXHOSTNAMELEN, not MAXNAMELEN


# 1.22 08-May-1998 millert

pppd 2.3.5


Revision tags: OPENBSD_2_3_BASE
# 1.21 17-Jan-1998 millert

ppp-2.3.3 + some -Wall


# 1.20 14-Nov-1997 millert

clear CLOCAL if modem is set but modem_chat is not.


Revision tags: OPENBSD_2_2_BASE
# 1.19 25-Oct-1997 millert

Set CLOCAL for chat script by default. Add new option "modem_chat"
to override the default for people using cua devices who want chat
to detect loss of carrier.


# 1.18 05-Sep-1997 millert

ppp 2.3.1


# 1.17 04-Aug-1997 deraadt

save errno in sigchld handlers


# 1.16 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.15 29-Mar-1997 dgregor

Changed definition of 'a' in vfmtmsg from void * to va_list.
Possible fix for PR#130.


# 1.14 23-Jan-1997 niklas

Pedantic removal of extra spaces


# 1.13 23-Dec-1996 mickey

pppd 2.3b3 import. some minor buf oflow fixes and so.
try it out ppl, but i've got it running talking to cisco w/ all the AFs
enabled in kernel.


# 1.12 22-Dec-1996 deraadt

Deal with _POSIX_SAVED_IDS when relinquishing privileges


Revision tags: OPENBSD_2_0_BASE
# 1.11 20-Aug-1996 deraadt

exit 1 for failure if -detach; netbsd pr#2705; jbernard@tater.Mines.EDU


# 1.10 27-Jul-1996 deraadt

pass a minimal environment ($PATH)


# 1.9 20-Jul-1996 joshd

Update pppd to 2.3a4:
Add redo option error-reporting, add PAM, add microsoft compatibility
kludges, bzero stuff at important places, add one or two options
other generic enhancements. From: Paul.Mackerras@cs.anu.edu.au


# 1.8 17-Jun-1996 deraadt

parse args before tty options file; netbsd pr#2554; from Davyd.Norris@fcollins.com.au


# 1.7 11-May-1996 deraadt

check before unlinking pidfile


# 1.6 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.5 25-Mar-1996 niklas

From NetBSD: merge of 960317


# 1.4 04-Feb-1996 hannken

sleep() call not needed (from NetBSD).


# 1.3 07-Jan-1996 deraadt

pass a useful environment to ip-up/ip-down scripts; this is not a
security problem
different fix than from banshee@gabriella.resort.com; netbsd pr#1866


# 1.2 28-Dec-1995 hannken

Leave DTR down for one second on exit so modem may catch the DTR to false
transition. (from hannken@eis.cs.tu-bs.de)


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.55 24-Oct-2021 deraadt

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.54 17-Mar-2016 krw

Last parameter to execl[e]() functions *must* be cast to a pointer.
Just NULL is not good practise as NULL is theoretically allowed to
be an integer rather than a pointer.

Use (char *)NULL consistently instead of scattering a few (char *)0
and (void *)NULL into the mix.

Prompted by and probably ok deraadt@ millert@ kettenis@

Definitely ok mestre@ ratchov@


Revision tags: OPENBSD_5_9_BASE
# 1.53 06-Dec-2015 tobias

Use __progname instead of manually handling argv[0].

ok deraadt, mmcc, tedu


# 1.52 26-Oct-2015 deraadt

stop saving a pidfile; ok jung zhuk


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.51 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


# 1.50 08-Oct-2014 deraadt

easy obvious use of reallocarray(); ok doug


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.49 30-Apr-2011 nicm

Remove some unused code, from Michael W Bombardieri. ok yasuoka


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.48 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.47 02-Sep-2007 deraadt

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg


Revision tags: OPENBSD_4_2_BASE
# 1.46 04-Jun-2007 henning

bye bye ipx


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.45 03-May-2005 djm

setres[ug]id; ok millert@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.44 09-Feb-2004 canacar

Remove unused %r (recursive) format option. ok millert@


# 1.43 08-Feb-2004 deraadt

amd64 needs the same hack as powerpc; but this code really needs to be
deleted/replaced. anyone want to step up?


Revision tags: OPENBSD_3_4_BASE
# 1.42 25-Apr-2003 deraadt

comment cleanup


# 1.41 14-Apr-2003 deraadt

obvious spring cleanup


# 1.40 04-Apr-2003 deraadt

strlcpy and snprintf; various people ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.39 29-Jul-2002 millert

Replace an instance of chmod() with fchmod()


# 1.38 01-Jul-2002 deraadt

license update of CMU parts. due to communication with wcw+@andrew.cmu.edu,
pushed for by tygs@netcologne.de. Apparently we also now known how to talk
to the lawyers there, if we were so mad. Note that a few other copyright
issues in pppd still remain, so this does not close this story.


# 1.37 26-May-2002 deraadt

pid_t cleanup


# 1.36 08-May-2002 deraadt

be even more clear


# 1.35 06-May-2002 deraadt

do not install a SIGSEGV handler


Revision tags: OPENBSD_3_1_BASE
# 1.34 19-Feb-2002 millert

branches: 1.34.2;
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.33 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.32 05-Nov-2001 deraadt

some syslog_r uses in signal handlers


Revision tags: OPENBSD_3_0_BASE
# 1.31 15-May-2001 deraadt

branches: 1.31.2;
the signal handlers can many illegal functions. try to at least be cautious.
parts from mickey, parts from me.


Revision tags: OPENBSD_2_9_BASE
# 1.30 09-Mar-2001 deraadt

exit(-#) is wrong


Revision tags: OPENBSD_2_8_BASE
# 1.29 15-Sep-2000 deraadt

check return value for setenv(3) for failure, and deal appropriately


Revision tags: OPENBSD_2_7_BASE
# 1.28 12-Feb-2000 deraadt

handle direct lines correctly; rees


Revision tags: OPENBSD_2_6_BASE
# 1.27 06-Aug-1999 deraadt

uid_t and gid_t, and use %u


# 1.26 03-May-1999 mickey

drop packets silently while the link is down, which is a better approximation
to the real networks, ie simulating an open wire w/ tokens falling down
angelos@ ok


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.25 12-Jul-1998 angelos

Implement demand_drop() for demand mode pppd; try to avoid mbuf
exhaustion while setting up a connection.


# 1.24 10-Jul-1998 deraadt

do not syslog() with "\n"; skipped smtpd/named/ipmon; 12 minutes of dabbling


# 1.23 09-Jul-1998 deraadt

hostnames are MAXHOSTNAMELEN, not MAXNAMELEN


# 1.22 08-May-1998 millert

pppd 2.3.5


Revision tags: OPENBSD_2_3_BASE
# 1.21 17-Jan-1998 millert

ppp-2.3.3 + some -Wall


# 1.20 14-Nov-1997 millert

clear CLOCAL if modem is set but modem_chat is not.


Revision tags: OPENBSD_2_2_BASE
# 1.19 25-Oct-1997 millert

Set CLOCAL for chat script by default. Add new option "modem_chat"
to override the default for people using cua devices who want chat
to detect loss of carrier.


# 1.18 05-Sep-1997 millert

ppp 2.3.1


# 1.17 04-Aug-1997 deraadt

save errno in sigchld handlers


# 1.16 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.15 29-Mar-1997 dgregor

Changed definition of 'a' in vfmtmsg from void * to va_list.
Possible fix for PR#130.


# 1.14 23-Jan-1997 niklas

Pedantic removal of extra spaces


# 1.13 23-Dec-1996 mickey

pppd 2.3b3 import. some minor buf oflow fixes and so.
try it out ppl, but i've got it running talking to cisco w/ all the AFs
enabled in kernel.


# 1.12 22-Dec-1996 deraadt

Deal with _POSIX_SAVED_IDS when relinquishing privileges


Revision tags: OPENBSD_2_0_BASE
# 1.11 20-Aug-1996 deraadt

exit 1 for failure if -detach; netbsd pr#2705; jbernard@tater.Mines.EDU


# 1.10 27-Jul-1996 deraadt

pass a minimal environment ($PATH)


# 1.9 20-Jul-1996 joshd

Update pppd to 2.3a4:
Add redo option error-reporting, add PAM, add microsoft compatibility
kludges, bzero stuff at important places, add one or two options
other generic enhancements. From: Paul.Mackerras@cs.anu.edu.au


# 1.8 17-Jun-1996 deraadt

parse args before tty options file; netbsd pr#2554; from Davyd.Norris@fcollins.com.au


# 1.7 11-May-1996 deraadt

check before unlinking pidfile


# 1.6 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.5 25-Mar-1996 niklas

From NetBSD: merge of 960317


# 1.4 04-Feb-1996 hannken

sleep() call not needed (from NetBSD).


# 1.3 07-Jan-1996 deraadt

pass a useful environment to ip-up/ip-down scripts; this is not a
security problem
different fix than from banshee@gabriella.resort.com; netbsd pr#1866


# 1.2 28-Dec-1995 hannken

Leave DTR down for one second on exit so modem may catch the DTR to false
transition. (from hannken@eis.cs.tu-bs.de)


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.54 17-Mar-2016 krw

Last parameter to execl[e]() functions *must* be cast to a pointer.
Just NULL is not good practise as NULL is theoretically allowed to
be an integer rather than a pointer.

Use (char *)NULL consistently instead of scattering a few (char *)0
and (void *)NULL into the mix.

Prompted by and probably ok deraadt@ millert@ kettenis@

Definitely ok mestre@ ratchov@


Revision tags: OPENBSD_5_9_BASE
# 1.53 06-Dec-2015 tobias

Use __progname instead of manually handling argv[0].

ok deraadt, mmcc, tedu


# 1.52 26-Oct-2015 deraadt

stop saving a pidfile; ok jung zhuk


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.51 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


# 1.50 08-Oct-2014 deraadt

easy obvious use of reallocarray(); ok doug


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.49 30-Apr-2011 nicm

Remove some unused code, from Michael W Bombardieri. ok yasuoka


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.48 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.47 02-Sep-2007 deraadt

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg


Revision tags: OPENBSD_4_2_BASE
# 1.46 04-Jun-2007 henning

bye bye ipx


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.45 03-May-2005 djm

setres[ug]id; ok millert@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.44 09-Feb-2004 canacar

Remove unused %r (recursive) format option. ok millert@


# 1.43 08-Feb-2004 deraadt

amd64 needs the same hack as powerpc; but this code really needs to be
deleted/replaced. anyone want to step up?


Revision tags: OPENBSD_3_4_BASE
# 1.42 25-Apr-2003 deraadt

comment cleanup


# 1.41 14-Apr-2003 deraadt

obvious spring cleanup


# 1.40 04-Apr-2003 deraadt

strlcpy and snprintf; various people ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.39 29-Jul-2002 millert

Replace an instance of chmod() with fchmod()


# 1.38 01-Jul-2002 deraadt

license update of CMU parts. due to communication with wcw+@andrew.cmu.edu,
pushed for by tygs@netcologne.de. Apparently we also now known how to talk
to the lawyers there, if we were so mad. Note that a few other copyright
issues in pppd still remain, so this does not close this story.


# 1.37 26-May-2002 deraadt

pid_t cleanup


# 1.36 08-May-2002 deraadt

be even more clear


# 1.35 06-May-2002 deraadt

do not install a SIGSEGV handler


Revision tags: OPENBSD_3_1_BASE
# 1.34 19-Feb-2002 millert

branches: 1.34.2;
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.33 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.32 05-Nov-2001 deraadt

some syslog_r uses in signal handlers


Revision tags: OPENBSD_3_0_BASE
# 1.31 15-May-2001 deraadt

branches: 1.31.2;
the signal handlers can many illegal functions. try to at least be cautious.
parts from mickey, parts from me.


Revision tags: OPENBSD_2_9_BASE
# 1.30 09-Mar-2001 deraadt

exit(-#) is wrong


Revision tags: OPENBSD_2_8_BASE
# 1.29 15-Sep-2000 deraadt

check return value for setenv(3) for failure, and deal appropriately


Revision tags: OPENBSD_2_7_BASE
# 1.28 12-Feb-2000 deraadt

handle direct lines correctly; rees


Revision tags: OPENBSD_2_6_BASE
# 1.27 06-Aug-1999 deraadt

uid_t and gid_t, and use %u


# 1.26 03-May-1999 mickey

drop packets silently while the link is down, which is a better approximation
to the real networks, ie simulating an open wire w/ tokens falling down
angelos@ ok


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.25 12-Jul-1998 angelos

Implement demand_drop() for demand mode pppd; try to avoid mbuf
exhaustion while setting up a connection.


# 1.24 10-Jul-1998 deraadt

do not syslog() with "\n"; skipped smtpd/named/ipmon; 12 minutes of dabbling


# 1.23 09-Jul-1998 deraadt

hostnames are MAXHOSTNAMELEN, not MAXNAMELEN


# 1.22 08-May-1998 millert

pppd 2.3.5


Revision tags: OPENBSD_2_3_BASE
# 1.21 17-Jan-1998 millert

ppp-2.3.3 + some -Wall


# 1.20 14-Nov-1997 millert

clear CLOCAL if modem is set but modem_chat is not.


Revision tags: OPENBSD_2_2_BASE
# 1.19 25-Oct-1997 millert

Set CLOCAL for chat script by default. Add new option "modem_chat"
to override the default for people using cua devices who want chat
to detect loss of carrier.


# 1.18 05-Sep-1997 millert

ppp 2.3.1


# 1.17 04-Aug-1997 deraadt

save errno in sigchld handlers


# 1.16 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.15 29-Mar-1997 dgregor

Changed definition of 'a' in vfmtmsg from void * to va_list.
Possible fix for PR#130.


# 1.14 23-Jan-1997 niklas

Pedantic removal of extra spaces


# 1.13 23-Dec-1996 mickey

pppd 2.3b3 import. some minor buf oflow fixes and so.
try it out ppl, but i've got it running talking to cisco w/ all the AFs
enabled in kernel.


# 1.12 22-Dec-1996 deraadt

Deal with _POSIX_SAVED_IDS when relinquishing privileges


Revision tags: OPENBSD_2_0_BASE
# 1.11 20-Aug-1996 deraadt

exit 1 for failure if -detach; netbsd pr#2705; jbernard@tater.Mines.EDU


# 1.10 27-Jul-1996 deraadt

pass a minimal environment ($PATH)


# 1.9 20-Jul-1996 joshd

Update pppd to 2.3a4:
Add redo option error-reporting, add PAM, add microsoft compatibility
kludges, bzero stuff at important places, add one or two options
other generic enhancements. From: Paul.Mackerras@cs.anu.edu.au


# 1.8 17-Jun-1996 deraadt

parse args before tty options file; netbsd pr#2554; from Davyd.Norris@fcollins.com.au


# 1.7 11-May-1996 deraadt

check before unlinking pidfile


# 1.6 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.5 25-Mar-1996 niklas

From NetBSD: merge of 960317


# 1.4 04-Feb-1996 hannken

sleep() call not needed (from NetBSD).


# 1.3 07-Jan-1996 deraadt

pass a useful environment to ip-up/ip-down scripts; this is not a
security problem
different fix than from banshee@gabriella.resort.com; netbsd pr#1866


# 1.2 28-Dec-1995 hannken

Leave DTR down for one second on exit so modem may catch the DTR to false
transition. (from hannken@eis.cs.tu-bs.de)


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision