Commit Graph

3174 Commits

Author SHA1 Message Date
brian
bd52968d26 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
charnier
0d290b832a Cosmetics in yp_error() and usage(). 1997-11-03 07:53:44 +00:00
ache
0402968a2b 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
jraynard
8df776813b Typo alert. 1997-11-02 00:58:39 +00:00
jseger
2f14780669 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
charnier
f164448775 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
c811dec8d3 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
jkh
b330f47cb6 Do chflags properly even when running multi-user. 1997-10-29 07:47:06 +00:00
charnier
97cd2cfa61 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
charnier
68d30808a9 Back out strcpy() -> strncpy() changes. According to bruce, they are unneeded. 1997-10-29 07:32:30 +00:00
charnier
cf8568c7a3 Use err(3). Rewrote man page using mdoc format. 1997-10-29 07:27:56 +00:00
charnier
2d829ec20e Use err(3). 1997-10-29 07:26:09 +00:00
charnier
24e614e49c Typos in man page. Cosmetics in error strings. 1997-10-29 07:25:05 +00:00
brian
941e2045a2 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
2e553bc250 - 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
2c7ba54db5 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
ache
442881c24b Implement group part now, final syntax is:
user[:group][/login-class]
1997-10-28 13:46:52 +00:00
joerg
5c37a12152 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
ache
6a842ce994 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
charnier
4b19c8ae4e Use err(3). 1997-10-27 12:30:30 +00:00
charnier
ede47e9ab0 Remove `progname'. 1997-10-27 12:29:25 +00:00
charnier
979da9c94a Add usage() and err(3). Sync man page with usage string. 1997-10-27 12:27:21 +00:00
charnier
5a5312b885 One line usage string: see man page for more info. 1997-10-27 12:25:38 +00:00
charnier
a603ec5bf9 Cosmetic in err() strings. 1997-10-27 12:23:08 +00:00
charnier
29b9cb9613 Use err(3). 1997-10-27 12:21:10 +00:00
charnier
32c601ba50 Use err(3). Add prototypes. Document -s and -r flags. 1997-10-27 07:55:31 +00:00
charnier
54e2b69a0f Statisize usage(). 1997-10-27 07:53:22 +00:00
charnier
254bdc1ce7 Use err(3). Stylistic changes in man page. 1997-10-27 07:52:10 +00:00
charnier
8098c0d2f3 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
charnier
8d124fec07 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
charnier
fb8e8d64e8 ntohl->htonl.
OKed by:	Bruce
1997-10-27 07:41:12 +00:00
brian
730654969b Cosmetic:
Move prototypes into the correct headers.
1997-10-26 12:42:13 +00:00
helbig
1433c9c29e Typo. 1997-10-26 10:37:35 +00:00
nate
c68183d0b8 - Do a bunch of gratuitous changes intended to make the code easier to
follow.
 * Rename/reorder all of the pccard structures, change many of the member
   names to be descriptive, and follow more closely other 'bus' drivers
   naming schemes.
 * Rename a bunch of parameter and local variable names to be more
   consistant in the code.
 * Renamed the PCCARD 'crd' device to be the 'card' device
 * KNF and make the code consistant where it was obvious.
 * ifdef'd out some unused code
1997-10-26 04:36:24 +00:00
brian
486b8925ec Cosmetic (no functional changes):
o   Add missing $Id$s
o   Move extern decls from .c -> .h files
o   Staticize
o   Remove #includes from .h files
o   style(9)ify includes
o   bcopy -> memcpy
    bzero -> memset
    bcmp -> memcmp
    index -> strchr
    rindex -> strrchr
o   Move timeout.h -> timer.h (making it consistent w/ timer.c)
o   Add -Wmissing-prototypes
1997-10-26 01:04:02 +00:00
jkh
8a403dc5c9 Fix typo in startup menu.
Submitted by:	max
1997-10-25 09:27:20 +00:00
brian
5edc0d2f34 sleep => nointr_sleep
usleep => nointr_usleep
(not just a #define)
Already done by: ache
1997-10-24 22:36:31 +00:00
max
8430e6b7e6 Pkg_add refused to process package whose packing list contains @exec/@unexec
before any file names.  This change makes pkg_add to process those
packages if @exec/@unexec commands don't contain any %[fFB].  Also
enable @exec/@unexec that have %D if the installation prefix is known to
pkg_add.
Reviewed by:	jkh
1997-10-24 08:32:06 +00:00
ache
2ac9673aae Restore back non-interruptable sleep/usleep just redefine them to not
mix with standard library functions
1997-10-23 21:32:48 +00:00
ache
39156922f6 Remove private sleep/usleep hacks 1997-10-23 20:11:01 +00:00
brian
b8215996d7 Fix various filter problems
PR:		4727
Submitted by:	Chiharu Shibata <chi@bd.mbn.or.jp>
1997-10-23 10:09:35 +00:00
charnier
90755c07f9 Use err(3). Add usage() and prototypes.
Hide reference to trsp(8) that does not exist.
1997-10-22 06:23:12 +00:00
charnier
f4735827f2 Use err(3).
Sync man page and usage string.
Strcpy -> strncpy from OpenBSD.
-Wall cleaning.
Obtained from: OpenBSD
1997-10-22 06:20:04 +00:00
brian
9060aacb1c Fix HDLC logging (actually LogDumpBp()). It was only
outputting the first mbuf in the chain.
1997-10-22 01:22:51 +00:00
peter
cac6af7db2 For safety's sake, explicitly depend all objects on the configvers.h header
to make sure that it's all recompiled even if there is no 'make depend'.
This is overkill, but should be one less thing that someone can do wrong.
1997-10-22 00:44:08 +00:00
peter
b57d8acf74 Recognize a %VERSREQ=nnnnn string in the system Makefile. Both config(8)
and the kernel will have a 'config interface version number'.  If an
incompatable change is made to the kernel that requires a rebuild of
config(8) (such as the cam devtab stuff), then the version number would be
bumped in both places.  If a user neglects to rebuild config, then they
will get a nagging (but non-fatal) warning that they need to rebuild
config.
1997-10-22 00:38:48 +00:00
charnier
a9eeb3d932 Cosmetic in usage string. 1997-10-20 12:55:49 +00:00
charnier
a9b89e1f31 Use err(3). Change err(-1,... to err(1,... 1997-10-20 12:53:54 +00:00
charnier
951a274309 Use err(3). Remove progname. 1997-10-20 12:51:34 +00:00
charnier
a0d3c902e1 Use err(3). Remove progname. Remove stli.4 with is a duplicate of stl.4,
use MLINKS instead.
1997-10-20 12:50:57 +00:00