Commit Graph

3376 Commits

Author SHA1 Message Date
obrien
71a2202c76 MFS. 1997-11-05 06:11:35 +00:00
jkh
6884713f08 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
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
charnier
47824fa253 Fix usage in man page. Remove progname. 1997-10-20 12:44:53 +00:00
charnier
2c674948c9 Typo. 1997-10-20 12:43:03 +00:00
charnier
6d5fb19194 Hardcode progname in usage string. 1997-10-20 12:41:41 +00:00
jkh
f3020bbe23 Document 100Mbit media selection flag. 1997-10-20 08:11:25 +00:00
dg
c9410919df "Fixed" pstat -T by avoiding the vnode stats. Disabled pstat -v since
we no longer support that sysctl (in my opinion, pstat -v is a security
hole in any case).
1997-10-19 18:41:23 +00:00
joerg
b429d6bbe4 Fix a number of buffer overflow conditions.
PR:		bin/4610
Submitted by:	David Holland (dholland@burgundy.eecs.harvard.edu)
1997-10-19 10:42:39 +00:00
jkh
9237618bdb Fix disk counting bug.
Submitted by:	Arjan de Vet <Arjan.deVet@adv.IAEhv.nl>
1997-10-18 21:22:25 +00:00
brian
044c4aaa12 Add -redirect_port and -redirect_address to the
synopsis.
1997-10-18 16:31:28 +00:00
joerg
8be97d8b61 Something that should have been done 2.5 years ago: install pcvt's
accompanying doc files into /usr/share/pcvt/.  (This goes to the `doc'
distribution, not `bin'.)
1997-10-18 10:40:02 +00:00
jkh
fbcce1e304 - do string-magic on the right variable when trying
to find dependent packages on the local disk (i.e. package given as
   filename, not URL)
 - document $PKG_PATH
 - use -v on pkg_add for dependent packages

Submitted by:	hubertf@NetBSD.ORG
Obtained from:	NetBSD
1997-10-18 05:54:17 +00:00
jkh
835fbd1d3a Deal with PLIST_UNEXEC properly.
PR:		4784
Submitted by:	Stefan `Sec` Zehl <sec@quit.42.org>
1997-10-18 05:42:05 +00:00
peter
4630b2d34d Don't say that the filtering options are only available under NetBSD, and
don't claim that _any_ serial speed is settable, mention that it has to
be supported by the device driver.  Some have very flexible baud rate
selection (ie: based on divisors etc, such as the com ports), while others
have explicit baud rate choices.
1997-10-18 01:29:18 +00:00
brian
b066166467 Ask for VJ slot id compression by default. 1997-10-17 00:20:30 +00:00
brian
d134eaa71d cosmetic:
o  Log client connection commands when "set log +command"
o  Don't display PAP password in the log unless we're
   "set log +debug".
1997-10-16 23:55:19 +00:00
joerg
213e132f58 One could be surprised how much bugs can still be found here...
Properlay clean the global RM variable if cgetstr() failed for it.
Otherwise, a connection attempt to a remote machine was made (and a
bogus result code printed) if a local printer followed a remote one in
printcap, and you did a `lpq -a', since checkremote() falsely assumed
the printer to be a remote one.

While i was at it, removed a gratuituous newline printed in front of
the remote machine's name, thus making the output more consistent (and
better machine-parseable) now.
1997-10-15 12:16:37 +00:00
charnier
99be2f82d9 Use err(3). Add prototypes. 1997-10-15 06:43:54 +00:00
charnier
07e4a691ea Use err(3). Rewrote man page in mdoc format. 1997-10-15 06:42:28 +00:00
charnier
189d33fcde Add usage(). 1997-10-15 06:41:19 +00:00
jkh
e72ee0f886 Fix various bogons reported in this PR.
PR:		4765
Submitted by:	fdiv
1997-10-15 04:37:26 +00:00
brian
d651f50b27 Initialise LCP, IPCP and CCP as soon as LCP is down.
Without this, in -auto mode, we stay in ST_STOPPING
and never check our dial filters to see if it's time
to bring the line up again.

This may make "set stopped" redundant.
1997-10-15 01:01:17 +00:00
jkh
66a0e8d6b0 Add a new startup variables menu for tweaking rc.conf variables in more
detail (also added more of them to the networking services menu).  Add
new dmenuISetVariable() function for interactive setting of non-boolean
flags.
1997-10-14 18:17:35 +00:00
joerg
fef7c77457 Improve my hack from rev 1.6 of displayq.c, and make the TCP
connection timeout controllable by a new printcap(5) capability named
`ct' (connectiom timeout), defaulting to 120 seconds (which is the
default TCP connection timeout).

Would anybody see a problem with merging all this into RELENG_2_2?
1997-10-14 16:01:02 +00:00
jkh
98e4a60d1d Fix bogon I introduced while adding disks menu to label editor. 1997-10-14 14:41:17 +00:00
jkh
2afa55ca38 Ask for extra confirmation if a newfs has been requested during
an upgrade.
PR:		3368
1997-10-13 17:32:29 +00:00
jkh
4b318a5826 Don't return from cleanup() - if it's removed the playpen then very
bad things will happen if we return to unsuspecting code.
Noted to my great dismay by:	Tim Vanderhoek <hoek@hwcn.org>
1997-10-13 15:03:55 +00:00
jkh
f71ea4919a Consolidate distribution flag checking code. 1997-10-13 12:12:14 +00:00
jkh
dc8100dcbd Allow access to options editor from media screen (sometimes you need it
there!).
1997-10-13 11:45:36 +00:00
jkh
3aa99fd0f5 Only need to call label editor for all drives. 1997-10-13 11:33:27 +00:00
charnier
1f77e4ee4c Use err(3). Add usage.
Use syslog instead of fprintf when being a daemon.
Change sprintf to snprintf obtained from OpenBSD.
Obtained from: OpenBSD
1997-10-13 11:27:55 +00:00
charnier
ff717fa4f4 Use err(3). Sync usage string and man page. 1997-10-13 11:24:01 +00:00
charnier
8459f389a1 Use err(3). Remove multiply defined Id string. 1997-10-13 11:22:39 +00:00
charnier
67de6ed0a2 Remove multiply defined Id string. Hide sccsid string. 1997-10-13 11:18:53 +00:00
charnier
8f640499e9 Use err(3). Add usage() and #includes. 1997-10-13 11:13:33 +00:00
charnier
5b323e1a48 Use err(3). 1997-10-13 11:08:47 +00:00
charnier
615b81821d Hide sccsid[]. Typo in man page. 1997-10-13 11:06:30 +00:00
charnier
9a7de1d4b1 Use err(3). Add prototypes. 1997-10-13 11:05:07 +00:00
charnier
f2b21f6a68 Mdoc'ify man page. 1997-10-13 11:03:36 +00:00
charnier
5e270e4c19 Use err(3). Add prototypes. Cosmetic in usage string. 1997-10-13 11:01:33 +00:00
brian
6643d67546 Un-spam ip_sum (arrgh - I don't know how this made
it into my patches :()
1997-10-12 21:43:55 +00:00
wosch
8ae70d2227 Delete ctm_scan program. There is no manpage for ctm_scan
and nobody use it.

Reviewed by: phk & Richard Wackerbarth
1997-10-12 19:58:53 +00:00
jkh
ce13ade8fa Update to reflect current affairs. 1997-10-12 16:21:36 +00:00
jkh
efc02b6453 Separate the siamese twins that were the partition and label editor.
Now you can use one without entering the other and it will DTRT.
These changes just allowed me to do the most straight-forward new disk
installation I've ever managed with sysinstall.
1997-10-12 16:21:21 +00:00
jkh
468930a717 Now that nested menus work properly, stop using the kludged-up
DITEM_RECREATE flag.
1997-10-12 12:11:14 +00:00
max
1dec1c3d6b Typo fix. 1997-10-12 11:51:25 +00:00
brian
be5e3ab6be Cosmetic: Mention that ppp is suspending before
executing a "shell" command.
1997-10-12 01:49:37 +00:00
peter
7fdb874d2e Give PPP_FILTER a whirl. 1997-10-10 11:59:02 +00:00
peter
017c612e63 Revive the connect-max-attempts option. When running in persist mode,
this limits the number of retries before aborting.  This can save
expensive phone bills. :-)  See rev 1.6 of main.c for original.
1997-10-10 09:28:38 +00:00
charnier
ad303c08c1 Use err(3). Silent -Wall. 1997-10-10 06:31:07 +00:00
peter
510a2b6c88 Revive rev 1.10, which documents the secrets files overrides for the
local:remote IP addresses on the command line or the options.ttynn files.
1997-10-10 06:30:08 +00:00
charnier
b93d92dbcd Staticize usage(). Cosmetics. 1997-10-10 06:27:07 +00:00
charnier
c4198a70c7 Use err(3) instead of local redefinition. Add rcsid string. 1997-10-10 06:23:42 +00:00
peter
272f35378b Revive some things that were lost during the ppp-2.3.1 update.
- (see auth.c rev 1.13) allow the pap/chap secrets file to specify an
override for the otherwise hard coded IP addresses.  This allows specific
users to dial in on a rotary which would otherwise get a dynamic address
forced to authenticate and get their own fixed addresses.
- (see options.c rev 1.9) recognize the old dns1 and dns2 options.  This
is a hack (TM). :-)
1997-10-10 06:02:57 +00:00
wpaul
8361cef2ba Fix bug in __yp_ping(): keep proper count of assigned request structures.
The test to see if a request struct had been assigned after looping
though the server list was bogus.

Submitted by: "Erik E. Rantapaa" <rantapaa@math.umn.edu>
1997-10-09 20:29:39 +00:00
charnier
1c136192c4 Use err(3). Add usage().
Default source of tables (-M) is /dev/mem, not /dev/kmem.
1997-10-09 07:22:08 +00:00
charnier
6d64125af7 Use err(3). Add usage().
Correct the .Nd string: in real life, portmap is translating rpc prog numbers
to darpa ports, not the opposite.
1997-10-09 07:17:36 +00:00
jkh
228606a79e Document extra tk*/tcl* package categories. 1997-10-08 15:31:13 +00:00
charnier
1c390186cd Use err(3). Cosmetics in usage string and man page. 1997-10-08 07:48:21 +00:00
brian
5d5b867579 Support VJ maximum slot identifiers != 15.
Support VJ slot id compression.

Previously, ppp would negotiate a max slot between 2 & 15
(if asked), and would agree to slot id compression (if asked).
It would then proceed to use 16 slots and no compression
anyway.  The result was a rather unusable connection.
1997-10-07 00:56:58 +00:00
joerg
f3ad79066c Documentation for the LOG_NTP facility. While i was at it, added a
bit of a warning about not all systems providing for the same set of
syslog facilities.
1997-10-06 20:37:50 +00:00
charnier
ede59acb91 Sync usage string with man page. 1997-10-06 11:38:30 +00:00
charnier
e1eba2d48d Use err(3). Add usage()s. 1997-10-06 11:36:08 +00:00
jkh
0bad82e206 Add an extra sanity check to previous commit. 1997-10-06 08:36:12 +00:00
jkh
fff37acdc4 This should put boot.help in its rightful place (finally!) 1997-10-06 08:34:56 +00:00
charnier
2e4411caec Cosmetic in err() strings. 1997-10-06 07:46:08 +00:00
peter
6e2db92a71 Hmm.. where did _that_ come from? :-) 1997-10-06 04:10:24 +00:00
imp
580b436a25 Be more paranoid about unlinking files. From mhpower@MIT.EDU by way of
Theo de Raadt.

Likely 2.2.5R candidate.
Obtained from: OpenBSD
1997-10-06 03:58:48 +00:00
jmb
fd0c3e5733 record the envelope-from address in the received headers
for all mail received at hub.freebsd.org

Obtained from: Peter Wemm <peter@freebsd.org>
1997-10-06 00:09:17 +00:00
brian
e5021654d0 Change things around a bit when bringing down the layers.
o LcpLayerDown() no longer does a NewPhase(PHASE_TERMINATE).
  Instead, it's done in LcpLayerFinish().  LayerFinish() gets
  called by the FSM after the LCP FSM goes through the Stopping
  and Stopped states.

o -direct and -background mode exit at PHASE_TERMINATE, not
  PHASE_DEAD.

The result is that LCP, CCP & IPCP are brought down cleanly on both
sides of the link (not just our side).  Killing ppp rather than just
closing it still makes it get out after the LCP SendTerminateReq().
I'll have a look at that soon.  We're probably not actually sending
the REQ :-(
1997-10-05 15:00:10 +00:00
brian
1f236d536d Refer a bit to pppctl.
Suggested (far to subtly for his own good) by:	joerg
1997-10-05 14:27:08 +00:00
brian
98dd7f981c Add a few examples. 1997-10-05 14:21:30 +00:00
joerg
f94dc5b1f1 Add a new special called `keep' to the list of special options. It
provides for a means to specify an argument for crunchide's -k option.
(This is required by ntpdate.)

Submitted by:	peter@rhiannon.clari.net.au (Peter Hawkins)
1997-10-05 13:35:05 +00:00
jkh
2c3516e032 DOH! I cannot believe that none of us caught this. Do *not*
turn TCPWRAPPER support on by default, eh? :-)
1997-10-05 12:31:08 +00:00
wosch
33e5135d21 Cleanup. 1997-10-05 12:28:02 +00:00
brian
c627948926 Cosmetic: Be specific about using TABs in syslog.conf. 1997-10-05 10:29:32 +00:00
jkh
418d0a6a92 Changes to support full make parallelism (-j<n>) in the world
target.
Reviewed by:	<many different folks>
Submitted by:	Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
1997-10-05 09:40:24 +00:00
jkh
e44ab64a4d Whups! Missed a spot in the kerberos src changes. 1997-10-04 15:50:09 +00:00
peter
0fa44e4a84 Record the envelope from address in the received: line. This has turned
out to be very useful for spam tracking and other problem debugging.

I first noticed this in one of Paul Vixie's machine's headers a while ago.
1997-10-04 11:10:19 +00:00
jkh
bc9a3278f3 Un-nuke krb and do what I *meant* to do, darn it. 1997-10-04 09:01:20 +00:00
jkh
ad8f729f9f Adapt for new crypto source layout. 1997-10-04 08:58:16 +00:00
brian
56229906e0 Cosmetic: Log a strerror(errno) when failing to write to
the tun device.
1997-10-04 00:14:39 +00:00
jkh
1a48a8d4c8 Get boot.help from a different place. 1997-10-03 14:14:40 +00:00
jkh
19305dda38 Don't attempt to deref OpenConn after it's been set to NULL. :) 1997-10-03 14:00:09 +00:00
jkh
05731aab54 For people running paranoid ftpds, use the real username to log in
with when running multi-user and we actually have one.
Suggested by:	Joao Carlos Mendes Luis <jonny@coppe.ufrj.br>
1997-10-03 03:32:03 +00:00
charnier
d03dfc94fa Use err(3). 1997-10-02 11:46:53 +00:00
charnier
473db3cc32 Use err(3). Change firewall to firewall_enable in man page according to
/etc/rc.conf.
1997-10-02 11:43:33 +00:00
charnier
350fc0457c According to Bruce, err(-1,..) is bogus. Change it to err(1,..). More commits
to come in this area.
1997-10-01 06:34:09 +00:00
charnier
c8ef4a7a48 Use err(3) instead of local redefinition. 1997-10-01 06:30:02 +00:00
charnier
9e9c06cc6a Use err(3). -Wall cleaning. 1997-10-01 06:27:34 +00:00
jkh
e8ee3433c3 Keep fingers off /etc files until they're properly backed up.
PR:		4636
Submitted by:	Jack <jack@zeus.xtalwind.net>
1997-10-01 01:30:35 +00:00
charnier
d6f2e7b752 Use err(3). Add usage(). Rewrote man pages in mdoc format. 1997-09-30 06:15:23 +00:00
brian
4ab28dc74b If "set mtu" is used, *and* the mtu is less than the
value requested by the peer, NAK using this value
rather than silently just changing the interface
mtu.
1997-09-29 19:40:16 +00:00
wosch
8ee659dd96 Sort cross refereces in section SEE ALSO. 1997-09-29 19:11:55 +00:00
jdp
320e7e69c1 Correct the description of the output from the "-s" option. It was
backward.
1997-09-29 17:43:11 +00:00
wosch
e4b768f0ee Endless loop.
$ vipw
[corrupt a line in editor, exit editor]
pwd_mkdb: corrupted entry
pwd_mkdb: at line #2
pwd_mkdb:
/etc/pw.012585: Inappropriate file type or format
re-edit the password file? [y]: n^D^D
[hang]
1997-09-29 13:13:51 +00:00
charnier
bb93f8d912 Use err(3). 1997-09-29 06:38:49 +00:00
jkh
dd7077033a Add ftp4.uk.freebsd.org 1997-09-29 00:15:07 +00:00
brian
4ffbb78e97 Test for the existence of ../../secure rather
than /usr/include/des.h before building with MSChap.
support.  Also allow -DNOCRYPT (as well as -DNOSECURE)
as an override
sbin/init example pointed out by: bde
1997-09-28 20:17:59 +00:00
markm
97238e0834 Add (commented out) macros to make compiling with tcpwrappers easier. 1997-09-28 09:31:43 +00:00
brian
889a2eb5e6 Don't depend on time.h including sys/types.h 1997-09-27 19:41:40 +00:00
brian
eba31c6066 Don't login twice when using passwdauth
Suggested by:	Peter Childs <pjchilds@imforei.apana.org.au>
Merge the whole module into a few lines in pap.c
1997-09-27 19:11:43 +00:00
hoek
0ec680f86f Document pkg_add's dependency auto-install. While I'm here, fix
a couple typos, and consistent double-spacing after sentences.

This is actually a spinoff from the "ports-current discontinued"
blow-up some time ago.

Ack'd by: jkh
1997-09-27 13:41:35 +00:00
brian
72603302dc #define RECON_ENVOKED as 4 (not 3, like RECON_UNKNOWN)
Pointed out by:	tom@tomqnx.com (Tom Torrance at home)
1997-09-26 00:23:36 +00:00
charnier
e22797c8f4 Use err(3). Add missing parameter for printf() (reviewed by steve). 1997-09-25 06:47:33 +00:00
charnier
50b0f8d6fc Remove unused variables. Lowercase err() strings. 1997-09-25 06:44:39 +00:00
charnier
297ef2e6ce Put includes in alphabetical order. Use fprintf() in usage(). 1997-09-25 06:42:30 +00:00
charnier
5e19c15792 Stylistic changes in man page. 1997-09-25 06:38:17 +00:00
charnier
46349eda65 Use err(3). 1997-09-25 06:36:29 +00:00
brian
a54a976476 Do the MSChap encryption.
Submitted by:	Gabor Kincses <gabor@acm.org>
1997-09-25 00:58:20 +00:00
brian
4c4910184f Allow Microsoft CHAP authentication.
This is a combination of MD4 & DES.
Submitted by:	Gabor Kincses <gabor@acm.org>
1997-09-25 00:52:37 +00:00
charnier
49a43f1c40 Use err(3). Add usage(). Various fixes in man pages. 1997-09-24 06:48:24 +00:00
charnier
c9faba1300 Statisize usage(). Add return(0) for -wall. 1997-09-24 06:44:12 +00:00
ache
61a656ae1e Compact usage string, devices list can be too long 1997-09-23 23:24:13 +00:00
brian
c73c4cd778 Don't luse uu_lock in -direct mode. It conflicts w/
hylafax & the like.
Get the CD bit right at last - now that I've got
my second modem back - loss of carrier makes ppp exit.
1997-09-23 22:07:51 +00:00
brian
8403100dd5 Undo botched commit (local changes got in) 1997-09-23 19:52:14 +00:00
nate
cbddc1630d - Bump up the size of the space for strings read from PCMCIA cards. Newer
cards have longer entries.

Submitted by:	Lars Fredriksen <lars@fredriks-1.pr.mcs.net>
1997-09-23 19:51:32 +00:00
charnier
d2cb47c04a Use err(3). Add usage() and prototypes. 1997-09-23 06:38:54 +00:00
charnier
a816a4029a Use err(3). Put includes in alphabetical order.
Rewrote man page in mdoc format.
Document -v and -p flags.
1997-09-23 06:36:27 +00:00
charnier
64e31a4146 Use err(3). Make it -Wall friendly. Typo fix in man page. 1997-09-23 06:32:33 +00:00
brian
3884570228 Don't allow accept/deny when it's not appropriate.
Log PAP/CHAP users in utmp & wtmp, allowing it to
be avoided with "disable utmp"
1997-09-22 23:59:16 +00:00
max
40c505b771 Typo fix.
PR:		4594
Submitted by:	Masahiro Sekiguchi <seki@sysrap.cs.fujitsu.co.jp>
1997-09-22 10:12:47 +00:00
jkh
d7d9fa907e If we're going to blindly install freebsd.cf from the etc-sendmail.cf
rule then we'd better depend on it.
1997-09-22 07:33:14 +00:00
charnier
466aa2b87a Use err(3). Put includes in alphabetical order. Use .An macro. 1997-09-22 06:30:04 +00:00
brian
e74401cd50 Don't pause for one second before starting LCP
negotiation.  Instead, incrementally pause after
receiving LCPs with the same magic.  We can now
suffer a server that waits more than 1 second before
responding.  Pauses greater than a second get
hopelessly confusing as when the server eventually
starts, it sees a flood of Config Requests followed
by config NAKs and changes of magic.  This causes the
server to change its magic over and over.....
1997-09-22 02:51:24 +00:00
brian
ed62efbf2d Use the correct device name in "show modem" 1997-09-22 00:55:46 +00:00
brian
5e4ed6c854 Correct the way the uucp lock file and the ttyXX.if lock
file get created.  We don't create lock files over non-tty
connections, but we *do* create lock files in -direct mode.
This leaves us capable of adding utmp/wtmp support for
successful pap & chap logins (coming soon).
1997-09-22 00:46:56 +00:00
brian
2a712aab9b Sleep for a second before sending the first LCP
config request.  This stops us from squirting stuff
down a line that still has ECHO turned on because the
peer hasn't had a chance to start yet.
Lead to the cause by:	Greg Lehey <grog@lemis.com>
1997-09-21 23:01:34 +00:00
gibbs
202e8d2ad2 Add isa_devtab_cam. 1997-09-21 22:12:50 +00:00
brian
89c06caf59 It turns out that the following:
close(1);
  close(2);
  x = open(ctermid(NULL), O_RDWR|O_NONBLOCK);
  close(0)
on a tty causes select() to return an exception for descriptor x !
This is the case in RELENG_2_2, but not in 2.2.2.  I'm not sure why.
Instead of doing the x=open() and close(0), we just do x=0 now.
Problem pointed out by: Greg Lehey <grog@lemis.com>
                        Tomi Vainio <tomppa@fidata.fi>
1997-09-21 20:26:47 +00:00
brian
2f99a3221a Typo police
Submitted by:	Mark Cammidge <mark@gmtunx.ee.uct.ac.za>
1997-09-21 13:08:00 +00:00
brian
131579bb6f Add a pppctl(8) xref.
Suggested by:	joerg
1997-09-21 13:06:43 +00:00
wosch
ae07872751 Add ypwhich(1) and yppoll(8) manual pages.
Obtained from: NetBSD, slightly modified
1997-09-21 11:49:18 +00:00
wosch
354c4ae899 Chown(8) compiled with -DSUPPORT_DOT (backward compatibility) does
first check for a `.' and then for `:' as a delimiter.
Usernames with a dot will fail.

# chown r.r:bin /tmp/bla
chown: r:bin: illegal group name

Fix: first check for a `:' and then for a `.'
1997-09-21 09:13:57 +00:00
wosch
5d81cfe470 Do not complain about non existing shell "/nonexistent"
Smarter error check if a uid is already in use.

Submitted by: "Eugene Radchenko" <genie@qsar.chem.msu.su>
1997-09-20 19:59:54 +00:00
wosch
49f61b81da Do not accept empty user names. 1997-09-20 18:26:22 +00:00
jkh
bf3fadc451 More label editor enhancements.
Submitted by:	Ed Gold <vegold01@starbase.spd.louisville.edu>
1997-09-20 06:24:17 +00:00
imp
bbdf620f6f Add missing \ from previous rev to end of a line. 1997-09-20 04:58:08 +00:00
jkh
d940e50d4c Fix conditional bogon in Label Editor [from Ed Gold]
Print info boxes without titles.
1997-09-20 02:48:48 +00:00
brian
c772a08c0b Use snprintf() instead of sprintf() most of the time.
Obtained from: OpenBSD

Make usage() consistent with man page.
1997-09-19 22:22:04 +00:00
max
2a05eabf01 Typo. 1997-09-19 16:04:19 +00:00
jmg
5ea6480b10 bmake'd pnpinfo 1997-09-19 15:41:57 +00:00
jmg
8a673a35ad activate pnpinfo 1997-09-19 15:41:43 +00:00
jmg
d3d13402b9 major modifications to the mixer. currently it doesn't report errors
that it encounters (such as invalid device), but does print usage upon
this error...

but otherwise allows complex commands such as:
mixer -f /dev/mixer4 synth line 50 -rec mic +rec line =rec cd ^rec mix
1997-09-19 13:38:51 +00:00
charnier
2f51fec1e1 Use An macro for author name. 1997-09-19 06:29:52 +00:00
charnier
849e44e300 Use err(3). Typo fixes in man page. 1997-09-19 06:28:57 +00:00
charnier
e9cad8594e Use err(3). 1997-09-19 06:27:30 +00:00
jkh
de0ee3be86 Whoops! Missed one on the XF8633 -> XF86331 update.
PR:		4560
1997-09-18 17:54:36 +00:00
jkh
418c3d5810 Correct typo. 1997-09-18 16:24:36 +00:00
jkh
09b4f713a5 Over 1000 ports now. Note this in the relevant place. 1997-09-18 16:19:17 +00:00
phk
d8ac409160 Many places in the code NULL is used in integer context, where
plain 0 should be used.  This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.

PR:		2752
Submitted by:	Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
charnier
1754071cd4 environmental -> environment. 1997-09-18 06:55:21 +00:00
charnier
335b8fc3ac Typo. 1997-09-18 06:54:03 +00:00
charnier
ce8df1cd4a Use err(3). Document -y flag. Remove unused -s flag from getopt string. 1997-09-18 06:35:51 +00:00
brian
109ba0ca66 Don't close(1) in direct mode and then proceed to
isatty(1) !  Keep 0 open for this till the modem's
been set up by either dup()ing 0 or by opening
ctermid(NULL) (if isatty(0)).

Discussed problem with: Tomi Vainio <tomppa@fidata.fi>
Made it finally dawn on me: Angelo Turetta <ATuretta@stylo.it>
1997-09-18 00:15:25 +00:00
brian
af684d2595 Support CHAP using MD4
Suggested by: jordan
1997-09-17 23:17:57 +00:00
pst
52f8c412b8 Fix misspelling 1997-09-17 16:23:48 +00:00
pst
f6e7a48122 variable_load.c is dead 1997-09-17 16:18:54 +00:00
pst
4f718b5d5d Put all variables in VAR_ #define's to force a single location for all
of these magic knobs.  This is purely cosmetic and a documentation issue
so we don't have to glop through the source code looking for gems.
1997-09-17 16:18:22 +00:00
jkh
0dfe9b61e4 Add a new netInteractive variable so that the interactiveness of the TCP
setup dialog from scripts is more controllable.  No more biasing off of
hostname (which is now non-optional in the non-netInteractive case).
Requested by:	pst
1997-09-17 13:33:14 +00:00
charnier
79b7395b62 Use err(3). Document options in man page, not in usage string. 1997-09-17 06:32:45 +00:00
charnier
29e06a9a5c Perror() -> warn(). 1997-09-17 06:30:22 +00:00
charnier
4d3c6f853c Use err(3). Add prototypes. 1997-09-17 06:29:23 +00:00
charnier
8d96034d35 Use err(3), add usage(). 1997-09-17 06:27:23 +00:00
charnier
9b3a5c04f4 Use err(3) instead of local redefinition. 1997-09-17 06:26:06 +00:00
charnier
34a6b27326 Use err(3). Use An/Aq for author name. 1997-09-17 06:24:58 +00:00
charnier
7f53c003f5 Wrap too long lines.
Requested by: Bruce.
1997-09-17 06:20:45 +00:00
brian
aaae64c991 o Fix two unlikely descriptor leaks.
o Output the correct device for "show modem"
  while in -direct mode.
o Cosmetic:  Moan a bit more when we can't open
  the [modem] device.
o Call OpenModem() in a more "natural" way.
o Add some LogDEBUG in OpenModem().
1997-09-16 23:15:16 +00:00
jkh
e4a215054b Whoops, forgot a file!
Submitted by:	pst
1997-09-16 18:57:47 +00:00
jkh
cb8ec218f6 Much better dispatch code and scripting support.
Submitted by:	pst
1997-09-16 18:57:18 +00:00
jkh
d387f3a0a9 MF22: pst's changes.
Submitted by:	pst
1997-09-16 10:14:23 +00:00
charnier
28c97c8eb6 Police from style.9 and Bruce. 1997-09-16 07:11:13 +00:00
charnier
99550d450c Use err(3). 1997-09-15 06:41:09 +00:00
charnier
bdee4a3e4b Use err(3). Rewrote man page in mdoc format. 1997-09-15 06:39:25 +00:00
charnier
b8c46235c5 Use err(3), add usage(). -Wall clean. 1997-09-15 06:37:10 +00:00
charnier
3e054bd532 Put includes in alphabetical order. various cosmetics. 1997-09-15 06:33:52 +00:00
charnier
0976cf0f14 Remove unused #include. Statisize usage(). 1997-09-15 06:32:01 +00:00
rgrimes
23d5613e63 Now that this has been merged over to RELENG_2_2 remove
the #if FreeBSD >= 3 wart I added while debugging.
1997-09-15 05:08:05 +00:00
joerg
4d85218738 Explain a little more about the piping feature.
PR:		4122
1997-09-14 06:55:15 +00:00
jkh
232f4d661d XFree86 3.3.1 updates
Document new media flag in lieu of links.
1997-09-14 04:18:42 +00:00
max
b6275222a0 Typo. 1997-09-13 17:55:43 +00:00
wosch
fde8a8ec46 spelling corrections.
PR: docs/4450
Submitted by: josh@quick.net
1997-09-13 16:01:53 +00:00
wosch
6508f8ef4b typo
PR:		docs/4523
Submitted by:	Takahiro Yugawa <yugawa@orleans.rim.or.jp>
1997-09-13 15:35:00 +00:00
jlemon
551d6af699 If a host in an export line in /etc/exports (or within a netgroup on
an export line) is unresolvable, make a note of it via syslog and skip
that individual host instead of skipping the entire line.

PR:	1981, 815
Perused by:	joerg
1997-09-12 16:25:24 +00:00
jkh
5e33bd85aa Fix offset bug in partition display that made partitions of type
`linux_swap' hose the output.

Also add a (T)ype command for changing the type of a partition.
1997-09-11 17:12:08 +00:00
brian
93e97af991 Get rid of missing-prototype-warning 1997-09-10 23:55:35 +00:00
brian
5d60a9a46b PRED1 => TY_PRED1 (oops) 1997-09-10 21:36:54 +00:00
brian
49b883a1dd o Initialize the PRED1 input queue when we
receive the ResetAck, NOT when we send the
   ResetReq (as per the rfc).
o  SILENTLY ignore CCPs that arrive *before*
   the network phase (as per the rfc).
o  Check that we've actually negotiated PRED1
   before sending PRED1 output.
   This bug has been around for a *VERY* long
   time !  We shouldn't need to explicitly disable
   PRED1 now :-)
1997-09-10 21:33:32 +00:00
jkh
9631b54264 Update to XFree86 3.3.1 1997-09-10 10:15:41 +00:00
peter
e032db2bc7 Duh, calculate the compression ration correctly. (fixed point artithmatic
with 8 "fractional" bits needs to be divided (not multiplied) by 256.0
to get a floating point representation)
1997-09-10 08:43:17 +00:00
brian
74b863965c Cosmetic: Remove unused variables and build on OpenBSD. 1997-09-10 02:20:35 +00:00
brian
2acb5315cb Allow dial to work in non-interactive mode. 1997-09-09 23:56:29 +00:00
brian
2c906ef2d4 Print errors correctly (don't adjust
argc/argv for commands).
1997-09-09 23:23:24 +00:00
brian
fab65993a1 Don't start an interactive shell from a
telnet prompt.
1997-09-09 23:13:31 +00:00
brian
0791c3c050 Correct ppp authentication defaults in interactive
mode.  We don't want to be forced to type a password
here :-(
Pointed out by: mouth@ibm.net (John Kelly)

While I'm there, don't allow a "set server" in
interactive mode.
1997-09-09 21:51:39 +00:00
brian
4939f4fc06 Document the use of PAP/CHAP properly. 1997-09-09 21:01:53 +00:00
jkh
a605df3211 Scrolling partition and label lists now make it possible to partition
lots of disks from sysinstall.  Yay!  Please test this as much as
possible with any 3.0 SNAP later than 970910 (I.E. tomorrow's snap),
especially those of you with larger disk farms.

Submitted by:	Ed Gold <vegold01@starbase.spd.louisville.edu>
1997-09-09 16:32:01 +00:00
jkh
8c6164b309 Eliminate an obviously redundant message title. 1997-09-09 16:27:50 +00:00
jkh
55f821d874 Update for XFree86 3.3.1 1997-09-09 16:26:29 +00:00
jkh
a3ece59a09 Be more cautious about leaving user with a workable kernel during the
upgrade process.
Submitted by:	Mikael Karpberg <karpen@ocean.campus.luth.se>
1997-09-09 09:19:30 +00:00