Commit Graph

3125 Commits

Author SHA1 Message Date
Brian Somers
6e96766a46 Null commit:
The last modification removed the use of $HOME/.ppp.*
1997-11-09 13:18:18 +00:00
Brian Somers
5106c67149 Introduce ID0 logging.
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.
1997-11-09 06:22:49 +00:00
Brian Somers
592fb86275 When responding to a CHAP challenge, don't try to use
ppp.secret to get a key value based on the peers name,
then send the value of AuthName with the encrypted result.
This is *way* too confusing.
Instead, always use AuthName and AuthKey as the documentation
says.
1997-11-09 03:55:27 +00:00
Brian Somers
d3a3ec3bb5 Don't include RTA_GATEWAY in rtm_addrs unless it's specified. 1997-11-09 03:22:49 +00:00
Brian Somers
87786af251 Typo police. 1997-11-08 12:37:33 +00:00
Brian Somers
9780ef311d Don't pass global vars as args.
Remove local/global conflicts.
1997-11-08 00:28:11 +00:00
Brian Somers
7d0a1bac71 Style police.
bzero -> memset
index -> strchr
rindex -> strrchr
Use libedit (this should make pppctl a lot more attractive than telnet).
1997-11-07 20:20:15 +00:00
Joerg Wunsch
6d0727f460 Argl! Who's got the pointy hat these days? Hand it over to me, ASAP!
When setting an alarm that didn't trigger, i gotta clear it again
before going on.  Hmpf!
1997-11-07 13:18:50 +00:00
Brian Somers
fbff0da4c8 Support interactive mode. 1997-11-07 02:54:49 +00:00
Joerg Wunsch
19a41f3ab7 Pah! I didn't stick to my own advise to adjust the padding... 1997-11-07 00:18:25 +00:00
Joerg Wunsch
5e90d58311 Typo fix that caused the value 0x1234 to be written to a random memory
location.  Also, instead of jumping ot the CPU's restart vector, just
call int 0x19 to reboot.  (Writing hte 0x1234 was a little useless
otherwise.)

PR:		bin/4901
Submitted by:	Jonathan Mini <mini@d198-232.uoregon.edu>
1997-11-07 00:12:55 +00:00
Joerg Wunsch
8518c081b4 Fix some breakage from my last set of changes.
PR:		bin/4892
Submitted by:	Vasim Valejev <vasim@uddias.diaspro.com>
1997-11-07 00:09:40 +00:00
Joerg Wunsch
8f8262da39 Teach tzsetup to understand blank lines in the iso3166 file.
Found by:  evanc@synapse.net (Evan Champion)
1997-11-07 00:07:27 +00:00
Warner Losh
2fd8f469e5 Use warn rather than warnx to report errors opening the APM device.
Nit formatting fix
1997-11-06 23:55:38 +00:00
Mike Smith
41631559ba Bump configvers to 300003 to account for the crd->card (and related)
namespace changes.
1997-11-06 03:11:40 +00:00
Brian Somers
9633be85d7 o Spelling police.
o  Emphasize ``PPP''
o  x-ref other programs
o  Some minor clarifications
1997-11-06 00:25:33 +00:00
David E. O'Brien
48761ea3ad MFS. 1997-11-05 06:11:35 +00:00
Jordan K. Hubbard
8138f33308 Since doc no longer contains the Handbook, stop saying that it does.
Submitted by:	Joao Carlos Mendes Luis <jonny@coppe.ufrj.br>
1997-11-04 23:44:22 +00:00
Brian Somers
a1e8f9372a Introduce [local] to "set log [local] ...". This spits
logging out to the screen in terminal mode - should be
good for installation problem diagnosis.
1997-11-04 01:17:05 +00:00
Philippe Charnier
73aabc1f3c Cosmetics in yp_error() and usage(). 1997-11-03 07:53:44 +00:00
Andrey A. Chernov
0435c15004 Log run-time parsing errors now
Use getpwnam before getpwuid since two users with same uids can exists
(affects new login classes code only)

The same fixes as in inetd: by default run `system crontab things' with
daemon login class now, not restrict them to user class breaking
compatibility with old way (so-called nobody limits problem)

Implement user[:group][/login-class] syntax in system crontab
for more flexible control (the same as in inetd)
1997-11-02 17:22:20 +00:00
James Raynard
6632f06e7a Typo alert. 1997-11-02 00:58:39 +00:00
Justin M. Seger
50aedc813b Fix typo: 129.168.128.0 -> 192.168.128.0
PR:		docs/4871
Submitted by:	sec@42.org
1997-11-01 15:55:09 +00:00
Philippe Charnier
0b10309e4d Make all strings representing hostnames to be NUL-terminated within
MAXHOSTNAMELEN chars, like everywhere else in the system, so that strcpy()s
and printf()s won't fail.
1997-10-31 12:33:14 +00:00
Dima Ruban
3e2e58f12e Add possibility to specify maximum number of connections per minute
for a given IP address.
This should be very effective against DoS attacks.
1997-10-29 21:49:04 +00:00
Jordan K. Hubbard
d424167c3c Do chflags properly even when running multi-user. 1997-10-29 07:47:06 +00:00
Philippe Charnier
5e24be183a Back out strcpy() -> strncpy() changes. According to Bruce, they are unneeded.
Check the return value of gethostname() like in timed. Make enough place to
NUL-terminate the result.
1997-10-29 07:35:27 +00:00
Philippe Charnier
0b778a4e7f Back out strcpy() -> strncpy() changes. According to bruce, they are unneeded. 1997-10-29 07:32:30 +00:00
Philippe Charnier
dd63f75f44 Use err(3). Rewrote man page using mdoc format. 1997-10-29 07:27:56 +00:00
Philippe Charnier
0da8bf4ab2 Use err(3). 1997-10-29 07:26:09 +00:00
Philippe Charnier
988345234d Typos in man page. Cosmetics in error strings. 1997-10-29 07:25:05 +00:00
Brian Somers
0fe7ca3165 o Bump version to 1.3 to reflect major changes
o  Report modem connect time properly
o  Report bytes in/out over physical media
o  Fix phases (TERMINATE is *higher than* DEAD)
o  Do a LayerFinish from LcpDown
o  Bring down IPCP & CCP when we enter PHASE_TERMINATE
o  Give a new prompt when we go to PHASE_DEAD
o  Stop the modem timer properly when idle
o  Treat sig 15 like an exiting carrier loss
o  Log (DEBUG) offline & online transitions
1997-10-29 01:19:51 +00:00
Nate Williams
ec510cabb0 - Disable cards when doing a suspend by emulating that they have been
removed.  Add a new state 'suspend' so we 'fake' insertion events at
  resume time for the cards that have been suspended.

[
The code still works if you remove the card during suspend, switch the
card during suspend, or combinations of both.
]

Reviewed by:	frf@xocolatl.com
1997-10-28 17:51:25 +00:00
Brian Somers
af8eceb3f6 Don't logwtmp(), login() already does it.
Log us out of utmp & wtmp if we're already in there.
PR:		4862
1997-10-28 16:50:56 +00:00
Andrey A. Chernov
b34683ca29 Implement group part now, final syntax is:
user[:group][/login-class]
1997-10-28 13:46:52 +00:00
Joerg Wunsch
cea24a2b2e Allow for a keyword in the "files" file named "mandatory". The first
candidate for this is "npx0", more are likely to follow.

Check for pseudo-devices that are being configured, but don't appear
in any "files" file.  The ``pseudo-device bpf 2'' already hit me too
often.
1997-10-28 07:21:04 +00:00
Andrey A. Chernov
186a5319ff Implement login classes sepcification as user[/loginclass]
By default inetd run things with the same limits as from /etc/rc
(daemon class) to not break anything as in good old days.
1997-10-27 22:03:47 +00:00
Philippe Charnier
0069349cc5 Use err(3). 1997-10-27 12:30:30 +00:00
Philippe Charnier
e7f0e9ca56 Remove `progname'. 1997-10-27 12:29:25 +00:00
Philippe Charnier
c133210f74 Add usage() and err(3). Sync man page with usage string. 1997-10-27 12:27:21 +00:00
Philippe Charnier
aff2354586 One line usage string: see man page for more info. 1997-10-27 12:25:38 +00:00
Philippe Charnier
04ee6ce7a7 Cosmetic in err() strings. 1997-10-27 12:23:08 +00:00
Philippe Charnier
dc763e50ee Use err(3). 1997-10-27 12:21:10 +00:00
Philippe Charnier
586470c149 Use err(3). Add prototypes. Document -s and -r flags. 1997-10-27 07:55:31 +00:00
Philippe Charnier
acb61b9eb4 Statisize usage(). 1997-10-27 07:53:22 +00:00
Philippe Charnier
9396247ef7 Use err(3). Stylistic changes in man page. 1997-10-27 07:52:10 +00:00
Philippe Charnier
342afc34d7 Add usage(). Document -n flag. Do not touch/remove /etc/wall_cmos_clock
when -n (do nothing) is used.
1997-10-27 07:49:47 +00:00
Philippe Charnier
77cbf0b31b Use err(3). Change =' to ==' in two places, so that server not responding/
server ok is not displayed too often.
OKed by:		Bill (wpaul).
1997-10-27 07:45:47 +00:00
Philippe Charnier
8418db88a2 ntohl->htonl.
OKed by:	Bruce
1997-10-27 07:41:12 +00:00
Brian Somers
6eaa6ac5d5 Cosmetic:
Move prototypes into the correct headers.
1997-10-26 12:42:13 +00:00