summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/id.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't drop the last character from ut_line in ID0logout().brian2002-03-051-7/+8
| | | | | PR: 35531 MFC after: 2 weeks
* setproctitle() doesn't need to be called with root privs, so movebrian2000-08-161-18/+0
| | | | it from id.c into defs.c
* If the first character of the ``set title'' argument is `-',brian2000-08-091-1/+4
| | | | | put it into the format string, supporting ps's tweak to setproctitle().
* include stdlib.h (setproctitle() is prototyped there in OpenBSD)brian2000-01-071-0/+1
|
* Call MkSockNode() as uid 0brian1999-11-211-0/+18
| | | | Forgotten by: julian
* Fix ``set proctitle'' by using setproctitle().brian1999-11-171-0/+14
|
* Use modfind() to check if a kld is already loaded.brian1999-11-161-1/+1
| | | | Submitted mostly by: green
* Don't (unnecessarily) parse wtmp, force ID0logout() to DTRT instead.brian1999-10-251-2/+2
|
* Do a kldload() if we get ENXIO trying to open /dev/tun0brian1999-09-221-1/+18
| | | | Originally submitted by: green
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* o Fix remaining sizeof problems for 64 bit machines.brian1998-06-271-4/+4
| | | | | | | | | | o Allow ``set ....'' when we have multiple links but aren't in multilink mode. o Do a TLS when we receive a ``Open'' event in ``Closed'' state, despite the rfc state transition table. This is clearly an error in the RFC as TLS cannot have yet been called (without TLF) in the ``Closed'' state. I've posted a message to comp.protocols.ppp for confirmation.
* o If there's a session leader left running for a descriptorbrian1998-05-291-1/+14
| | | | | | | | | | | that we're now closing, manually HUP that session leader so that the tty is fully released. o Always restart our carrier detect timer in the receiving process if it was running in the sending process (as we now *always* pass the descriptor). o Tweak argv when we go into pause() mode to keep our session so that ps can see what's going on (without checking for a `pause' state in `ps -l').
* o Don't forget to close our transfer socket if we cannotbrian1998-05-281-1/+14
| | | | | | | generate the data to transfer. o Transfer uucp lock ownership for the transferred device. o Don't assume we know the correct values of dev_is_modem and mbits after the transfer.
* MFMP: Make ppp multilink capable.brian1998-05-211-24/+53
| | | | See the file README.changes, and re-read the man page.
* MFMP: Allow 8 character login names.brian1998-02-191-6/+41
| | | | Do the login()/logwtmp()/logout() as id 0.
* Remove unused #includes.brian1998-01-211-6/+1
| | | | | | Make various bits static. Remove unused variables. Submitted by: eivind
* Write to the routing socket as uid 0. It's not good enoughbrian1997-12-271-1/+13
| | | | to just open it as uid 0 under OpenBSD.
* Add (BSD) copyright headers.brian1997-12-211-2/+26
|
* Fix prototypes.brian1997-11-221-9/+10
| | | | | | | | | | | | | | Remove extraneous decls. Add ``const'' to several places. Allow ``make NOALIAS=1'' to remove IP aliasing. Merge with OpenBSD - only the Makefiles vary. We can now survive a compile with -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts (although the Makefile just contains -Wall).
* Use seteuid() instead of setreuid().brian1997-11-131-5/+5
| | | | The setreuid() page says seteuid is better !
* Introduce ID0 logging.brian1997-11-091-0/+145
Stay as the invoking uid as much as possible. Execution as a normal user is still forbidden for now, so these changes are pretty ineffective. The next commit will implement the modifications suggested on -hackers a number of days ago.
OpenPOWER on IntegriCloud