Commit Graph

6329 Commits

Author SHA1 Message Date
brian
e9aa407589 libutil.h is no longer required for setproctitle() 2000-09-02 02:16:51 +00:00
brian
15ac2ddf3c libutil is no longer required as setproctitle() has moved to libc 2000-09-02 02:01:18 +00:00
sanpei
c1223233b1 fix multi io window patch(Rev. 1.48)
Submitted by:	iwasaki
Obtained from:	PAO3
2000-09-01 08:51:37 +00:00
iwasaki
2bbee59fc9 Activate acpi. 2000-08-31 15:12:23 +00:00
iwasaki
d15e4891fc This commit was generated by cvs2svn to compensate for changes in r65287,
which included commits to RCS files with non-trunk default branches.
2000-08-31 14:45:00 +00:00
iwasaki
53d00480b6 import amldb(8) from ACPI For FreeBSD project.
Obtained from:  ACPI For FreeBSD project
2000-08-31 14:45:00 +00:00
iwasaki
960c7c47e2 This commit was generated by cvs2svn to compensate for changes in r65285,
which included commits to RCS files with non-trunk default branches.
2000-08-31 14:42:32 +00:00
iwasaki
2e85c753ff import acpidump(8) from ACPI For FreeBSD project.
Obtained from:  ACPI For FreeBSD project
2000-08-31 14:42:32 +00:00
iwasaki
9aa790fd41 This commit was generated by cvs2svn to compensate for changes in r65283,
which included commits to RCS files with non-trunk default branches.
2000-08-31 14:41:23 +00:00
iwasaki
8b89c74a2f import acpiconf(8) from ACPI For FreeBSD project.
Obtained from:  ACPI For FreeBSD project
2000-08-31 14:41:23 +00:00
iwasaki
9348a564d8 Add Makefile for acpi userland tools.
Obtained from:	ACPI For FreeBSD project
2000-08-31 14:38:47 +00:00
rse
f1908a0e71 Fix resolv.conf line hint: "name-server" -> "nameserver" 2000-08-31 11:13:20 +00:00
brian
ed0f07d9dd Use arc4random() instead of random() 2000-08-31 00:45:24 +00:00
brian
543225026f Don't treat two or more whitespace followed by a comment as
an empty argument

PR:	20937 (maybe)
PR:	20938
2000-08-30 20:51:13 +00:00
brian
50a3c4fd88 Complain about invalid arguments passed to ``set ifaddr'' 2000-08-30 20:49:50 +00:00
iwasaki
a8d8728b12 A lot of changes on acpi driver code.
- The "Osd*" stuff went away from acpi driver code, use the bus_space
   functions directly instead.
 - Fix minor english bugs.
   acpi_registers_input  -> acpi_register_input
   acpi_registers_output -> acpi_register_output
 - Remove all magic numbers for the sleeping states.  We now have
   #defines for these.
 - NULL is treated the same as the return from aml_get_rootname in
   aml_find_from_namespace().

Suggested by:	msmith

Thanks mike!
2000-08-29 20:30:54 +00:00
brian
a0d9c873d0 Correct LogMAX
Broken by:	me
Submitted by:	Mark Hannon <markhannon@one.net.au>
2000-08-29 17:00:52 +00:00
brian
ff7c637251 Use srandom() under OpenBSD
Submitted by:	Matt Behrens <matt@megaweapon.zigg.com>
2000-08-29 16:47:45 +00:00
sanpei
1ebed5b984 set pccard insertion beep type in install floppy.
When we use PC-Card as install media, it is a patch
to tell with beep about whether we were able to
recognize it well.

Reviewed by:	jkh, imp
Tested by:	Kenji Yamada <kyamada@ISI.EDU>
2000-08-29 00:42:31 +00:00
brian
f1f515c997 Add LogFILTER logging to log packets allowed by the dial filter and
dropped by any filter.

Submitted by: Mark Hannon <markhannon@one.net.au>

with some small tweaks by me.
2000-08-28 23:24:52 +00:00
brian
cb1cdc90fa Support radius accounting, and add a packet count to throughput
statistics as a side effect.

Submitted by: Marcin Cieslak <saper@system.pl>

with some tweaks to RAD_ACCT_SESSION_ID and
RAD_ACCT_MULTI_SESSION_ID generation by me.
2000-08-28 22:44:54 +00:00
murray
7918d735c0 This allows you to script sysinstall to say "NO" to DHCP and IPv6.
Previously, you could only script these features if you said YES.

Oops.  Accidentally commited to releng_4 first.

PR:		20334
Approved by:	jkh
2000-08-28 18:18:47 +00:00
grog
fb570e69fa Add the description of some hard-learnt restrictions and a workaround. 2000-08-28 05:47:05 +00:00
jwd
57a27cc0ac Remove a stray backspace character.
Reviewed by:	Eivind Eklund <eivind@FreeBSD.org>
2000-08-27 18:49:12 +00:00
ben
55b1f4b48e Make mergemaster ignore files in /dev if /dev is a devfs.
Approved by:	Doug Barton <Doug@gorean.org>
2000-08-26 12:15:24 +00:00
peter
05f5722996 If a ${KERNEL}.hints file exists, and no hints are specified explicitly,
then include the hints with a marker indicating that it is a fallback.
The kernel side of this is to come shortly.
2000-08-25 19:30:03 +00:00
takawata
3135216f2b Add orthogonal part of ACPI support code.
This does not come effect until non-orthogonal part is commited.

Approved by: jkh
Obtained from:	ACPI for FreeBSD CVS repository.
2000-08-24 09:33:30 +00:00
alfred
702a9ba819 the code assumes that getgroups() always returns NGROUPS groups, however
that is not true.  Instead of looping NGROUPS times, get the return value
from getgroups() and loop over the return that many times.

Noticed by: David A. Holland <dholland@eecs.harvard.edu>
2000-08-23 23:36:32 +00:00
bmah
8089880386 Update my email address in various places in pkg_version. 2000-08-23 17:10:34 +00:00
billf
5c853570eb Now that Bruce Mah is a committer, retire my co-maintainership
of pkg_version.
2000-08-22 18:42:27 +00:00
roberto
2be6f39774 Correct the naming. The default server is ftp.fr and #1 is the same.
Add back ftp6.
2000-08-22 14:28:16 +00:00
roberto
e0fe0e6f83 Reflect the name changes in fr.freebsd.org. 2000-08-22 13:07:59 +00:00
jkh
13942925c5 Remove device type field - there are no block devices left. 2000-08-22 03:14:39 +00:00
green
67c40ef892 Add working and easy crypt(3)-switching. Yes, we need a whole new API
for crypt(3) by now.  In any case:

Add crypt_set_format(3) + documentation to -lcrypt.
Add login_setcryptfmt(3) + documentation to -lutil.
Support for switching crypt formats in passwd(8).
Support for switching crypt formats in pw(8).

The simple synopsis is:
edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)

Reviewed by:	peter
2000-08-22 02:15:54 +00:00
ume
1c624ac57c Add UNIX domain socket feature to pccardd. This makes pccard
related PAO3/ports such as gxcardmon work.

Reviewed by:	imp
Obtained from:	PAO3
2000-08-20 16:16:57 +00:00
brian
bac59a32d0 Make -DNOSUID (or -DPPP_NOSUID) possible to build ppp without SUID
capabilities.
2000-08-18 00:01:44 +00:00
brian
c0049c3df2 Warn that the ``alias'' command is depricated.
We still process it for now though.
2000-08-18 00:01:30 +00:00
dwmalone
d2bdccc3f8 Allow people to set the default boot slice with boot0cfg.
PR:		18923
Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
Reviewed by:	jhb
Approved by:	rnordier
2000-08-17 18:42:13 +00:00
brian
c2fd0b7000 If we're in MP mode with a single open link, MP link level compression
isn't open and the links MRU >= our MRRU, send outbound traffic as
PROTO_IP rather than PROTO_MP.  This shaves some bytes off the front
of each packet 'till the second link is brought up.

Idea obtained from: Cisco
2000-08-17 14:14:54 +00:00
jhb
2a98230257 Add in the linux, tcl83, and tk83 ports categories.
PR:		bin/20328
Submitted by:	obrien
2000-08-16 18:44:40 +00:00
jhb
0338204b01 Add new 'ruby' ports category.
PR:		conf/20629
Submitted by:	asami
2000-08-16 17:44:35 +00:00
brian
65f020c63b ISDN B channels have a bandwidth of 64000, not 65536
Pointed out by: Christian Weisgerber <naddy@mips.inka.de>
2000-08-16 13:54:04 +00:00
brian
f03fa7361a If the -p option is used, use setproctitle() to hide it's argument
(a password) asap.
2000-08-16 12:01:17 +00:00
brian
a7aa2e6cdb setproctitle() doesn't need to be called with root privs, so move
it from id.c into defs.c
2000-08-16 09:07:23 +00:00
brian
724f61b07d Default the bandwidth of an ISDN B channel to 65536bps 2000-08-16 09:06:59 +00:00
brian
2e8f0fe474 Maintain input and output throughput averages and choose the highest
of the two when calculating the MP throughput average for the ``set
autoload'' implementation.

This makes more sense as all links I know of are full-duplex.  This
also means that people may need to adjust their autoload settings
as 100% bandwidth is now the theoretical maximum rather than 200%
(but of course, halfing the current settings is probably not the
correct answer either!).

This involves a ppp version bump as we need to pass an extra
throughput array through the MP local domain socket.
2000-08-15 10:25:42 +00:00
joe
2be7b9be57 When warning that a log file can't be compressed, tell the reader which
log file it was.
2000-08-15 09:34:41 +00:00
kris
8946b5171a Don't extract these files as mode 664 during build, use mode 644 instead. 2000-08-15 09:17:50 +00:00
sobomax
18c955d6f3 Several cleanups:
- use getopt(3) to parse command line arguments instead of home-made incomplete
  parser;
- be more verbose when error in command line encountered (i.e. incorrect
  playing/recording device, incorrect recsrc syntax).
2000-08-15 05:42:39 +00:00
brian
99a91bd0c2 Calculate the average link throughput using a counter based on the
cumulative total of all active links rather than basing it on the
total of PROTO_MP traffic.

This fixes a problem whereby Cisco routers send PROTO_IP packets only
when there's only one link (hmm, what a good idea!).
2000-08-15 00:59:21 +00:00
brian
b6a0e38086 Don't delete sticky routes when unconfiguring the interface.
Deleting all routes that match the interface is sufficient.
2000-08-14 08:43:40 +00:00
itojun
cd0197dbb9 fix LP64 issue in routing socket manipulation.
make behavior of -A safer.
(sync with kame)
2000-08-14 04:54:58 +00:00
gshapiro
34bd54827a Turn on support for IPv6 2000-08-14 02:36:29 +00:00
brian
f0e7cc686d Index: ppp.8
===================================================================
RCS file: /home/ncvs/src/usr.sbin/ppp/ppp.8,v
retrieving revision 1.233
diff -u -r1.233 ppp.8
--- ppp.8	2000/08/10 13:26:01	1.233
+++ ppp.8	2000/08/12 19:50:41
@@ -1,8 +1,8 @@
 .\" $FreeBSD: src/usr.sbin/ppp/ppp.8,v 1.233 2000/08/10 13:26:01 brian Exp $
 .Dd 20 September 1995
 .nr XX \w'\fC00'
-.Os FreeBSD
 .Dt PPP 8
+.Os
 .Sh NAME
 .Nm ppp
 .Nd Point to Point Protocol (a.k.a. user-ppp)
2000-08-13 22:03:42 +00:00
gshapiro
468a7634ef Use new aliases path (/etc/mail/aliases)
Approved by:	Doug Barton <DougB@gorean.org>
2000-08-13 19:32:19 +00:00
gshapiro
2424c7393a Complete migration of aliases file to /etc/mail/aliases.
The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster
have been contacted so those may be updated as well.
2000-08-13 18:38:58 +00:00
ume
d3b79934ef Add output of per battery information to apm(1).
New ioctl APMIO_GETPWSTATUS is introduced.

Reviewed by:	-mobile and -current folks (no objection)
2000-08-13 17:05:27 +00:00
gshapiro
eec2af9031 Get rid of the /etc/aliases -> /etc/mail/aliases hack. /etc/mail/aliases
now exists in the distribution.
2000-08-13 08:36:40 +00:00
gshapiro
002ef51d6e The rest of the changes needed to support the new version of sendmail (8.11.0).
Beyond changes to the build system, this includes fixing up the sample
freebsd.mc configuration for changes in defaults and syntax, removing
outdated documentation, and updating the release notes.
2000-08-12 22:39:25 +00:00
nyan
784618782e - Added support for installing boot0 and boot0.5 for PC-98.
- Cosmetic changes.
2000-08-12 14:20:31 +00:00
jkh
0f9d7e675d Make the selection of pccard IRQs fully selectable at installation time.
Submitted by:	"Sean O'Connell" <sean@stat.Duke.EDU>
2000-08-12 07:48:25 +00:00
sheldonh
6f43e98744 Explain why adding ``options NFSKERB'' breaks the kernel build.
PR:		10642
Reported by:	Stefan Eggers <seggers@semyam.dinoco.de>
Submitted by:	johan
2000-08-11 13:03:13 +00:00
brian
b45901a5b4 Mention that pppoe requires netgraph(4) and without it, an external
pppoe program must be used (such as pppoe(8) on OpenBSD).
2000-08-10 13:26:01 +00:00
sheldonh
42d0bc5b0d Remove hard sentence breaks introduced in the previous commit. 2000-08-10 09:01:10 +00:00
brian
f1a6d8fd4d Be more careful about selecting a PAGER.
Improve the question asked when the PAGER is invalid.

Submitted by: Doug Barton <DougB@gorean.org>
2000-08-09 20:36:15 +00:00
brian
f56c93c8c2 Allow leading ``!'' characters in authkeys and chat scripts to
be doubled up to mean a single literaly ``!''.
2000-08-09 19:29:50 +00:00
brian
f77ad6d1af If the first character of the `set title'' argument is -',
put it into the format string, supporting ps's tweak to
setproctitle().
2000-08-09 10:22:48 +00:00
brian
3193d19dd6 Treat all interface aliases as local addresses.
The new rtiparse() function should really be in libc IMHO.... I'm
sick of writing this code :-(

PR:	20381
2000-08-09 09:24:31 +00:00
unfurl
2eaedc55c8 Added extra paragraph to document the 'rebuild' feature.
Reviewed by:	msmith
2000-08-09 01:54:30 +00:00
roberto
5ec1b1a9ef - add ftp6.fr.freebsd.org
- correct URL for ftp4 and ftp5.

Submitted by:	Benjamin Bayart <bayartb@guinness.domicile.fr> (for ftp6)
2000-08-08 14:36:24 +00:00
marko
389cbb66e5 Update link to Making the World tutorial (now in the handbook) 2000-08-07 23:25:22 +00:00
marko
9bf0e2be8d Fix bug with -c option
PR:		18176
Reviewed by:	Bruce A. Mah <bmah@acm.org>
2000-08-07 22:47:46 +00:00
ps
41b31bd1e0 Update the usage string to reflect -n as an option. 2000-08-07 01:09:25 +00:00
ps
045b3ce333 Actually make syslogd understand the new -n option by putting it
in getopt.

Submitted by:	Clive Lin <clive@CirX.ORG>
2000-08-07 01:00:01 +00:00
tegge
70fee7556a Remove 3 off by 128 errors. 2000-08-06 01:17:39 +00:00
kris
b1da3ba3c9 Don't call errx() without a format string, to protect against possible
localized error messages from ipsec_strerror().

Obtained from:	OpenBSD
2000-08-05 06:21:12 +00:00
ume
5b330edf89 If caller have privilege to r/w access to /dev/apm, show the
info about resume timer and resume on ring indicator, again.

Reviewed by:	imp
2000-08-04 20:57:31 +00:00
kris
3da04b80da Cleanup of TMPDIR code.
Requested by:	bde (ages ago)
2000-08-03 23:44:43 +00:00
kris
af22f35f95 Change use of perror() to warn()
Submitted by:	bde
2000-08-03 23:13:35 +00:00
dwmalone
f36f8d5bae Explain "-c" option more exactly and state the default in the man
page.

Add ability to run "inetd -R 0" to disable the default connection
per minute limit of 256 connections. Document this in man page.

Don't use maxchild as a boolean - instead check if it is greater
than zero.

Reviewed by:	sheldonh
Based on a patch by:	Alexander Langer <alex@big.endian.de>
2000-08-03 15:45:38 +00:00
dwmalone
66d22fe285 specifer -> specifier 2000-08-03 15:33:39 +00:00
dwmalone
09a589b8f1 Sort cases in getopt switch statement.
Remove extra parens from my host selection commit.
Add white space after if, while, for and switch.
Get rid of braces around a single statement if.

There should be no functional changes in this commit.

Reviewed by:	sheldonh
2000-08-03 15:19:27 +00:00
dwmalone
91c8cf2367 Replace two calls to strlen+calloc+strcpy with strdup.
Reviewed by:	sheldonh
2000-08-03 15:12:06 +00:00
jkh
fae2a8c58e Fix HTTP port addresses for the IPv6 case.
Submitted by:	pho and Hajimu UMEMOTO
2000-08-03 02:51:45 +00:00
kato
afafe94c65 Added PC-98 boot manager installation and configuration utility. 2000-08-02 10:11:08 +00:00
obrien
49c864f516 Add all the missing US keymaps. 2000-07-31 21:05:48 +00:00
obrien
ba5c33fe96 Don't offer the PC98 link kit or setup on non-i386 installs. 2000-07-31 20:52:28 +00:00
dwmalone
cc221d575a Sleep for a second after tcp wrappers rejects a connection, so we
don't traumatise the parent inetd.

Requested by:	wietse@porcupine.org
Approved by:	markm
2000-07-31 13:10:52 +00:00
asami
6ad510b9f7 Add hebrew. 2000-07-31 00:16:28 +00:00
jkh
8c276cfb44 Fix the HTTP transfer code to correctly parse the port number if
specified.

Submitted by:	pho
2000-07-30 22:18:53 +00:00
peter
dcb2b59522 Initialize vflag like the rest (not necessary, but this keeps it together)
Optimize out chown(2) syscalls if there is no change in uid or gid.
2000-07-29 22:22:11 +00:00
ps
b0760261f3 Change option -r to -n inline with conventions we use elsewhere.
I guess it serves me right for using a patch directly from Jan
Koum.  :)

Requested by:	many
2000-07-29 04:02:34 +00:00
ps
fd6c9310b6 Add option 'r' to syslogd which will disable dns queries for every
request.  This is useful when you have a large site pointed at a
single syslog server.

Submitted by:	Jan Koum <jkb@yahoo-inc.com>
2000-07-29 01:37:37 +00:00
eivind
126215b8e1 Change the defaults for portmap, sendmail and inetd to be not running them.
Make sysinstall override this on install, so the effective behavioural
change for a newly installed system is null.  Overall, this makes a system
with an empty /etc/rc.conf not run any network services, and makes the
FreeBSD-provided network services that are running visible in /etc/rc.conf
(instead of making people look through /etc/defaults/rc.conf to find the
things they need to disable to secure the system.)

Reviewed by:	jhb
Discussed with:	The usual cabal
2000-07-28 22:45:36 +00:00
archie
ca906221f0 Add '-n' flag: don't attempt to read any data from standard input. 2000-07-27 21:55:48 +00:00
jhb
16e7b87995 Fix an annoying bogon in the form of a missing tab when generating CD-ROM
mount points in /etc/fstab.

Requested by:	obrien
2000-07-27 00:46:29 +00:00
sanpei
4f263a0294 Update the description of available channel for Japan.
The regulations has been changed to adopt 802.11b since Oct. 99.
For 11Mbps NICs sold in Japan, all DS channels (1..14) are available.

Thank you, itojun.

Obtained from:	NetBSD:basesrc/usr.sbin/wiconfig/wiconfig.8 Rev.1.5 ->1.6
2000-07-26 12:50:35 +00:00
jhb
d2ae8075f6 Bump an upper limit test so the xterm termcap selection actually works. 2000-07-26 02:51:47 +00:00
obrien
d815384366 Don't give the DEC Alpha user the chance to install the X servers that are
non-existant on non-i386 platforms.
2000-07-25 23:54:35 +00:00
jhb
4600fb1a7e Use a much saner method of locating the release directory on an FTP server.
Now, if a release is specified, instead of just looking for a directory
with the same name as the release, try several possible directories (each
suffixed with the release name) relative to the base directory including
".", "releases/MACHINE", "snapshots/MACHINE", and each of those prefixed
with "pub/FreeBSD/".  This will allow us to remove the evil symlinks under
pub/FreeBSD/releases/MACHINE/ to the snapshots on the ftp site.
2000-07-25 23:22:16 +00:00
imp
054be419e8 Add -q. this will cause the warning messages about missing
directories to not be printed.  This is from OpenBSD (and I think
NetBSD also) and makes our mtree more compatible with other BSDs.
This makes cross compilation easier than it was before.  Other changes
will be needed to allow NetBSD or OpenBSD to cross build on FreeBSD,
but this is a start.

Reviewed by: andrey
Obtained from: OpenBSD
Concentric Red Circles by: My own stupidity
2000-07-25 19:05:09 +00:00
jkh
a9fc3e05b1 Restore the screen after possibly spamming it.
Reported by:	Brian J. McGovern <mcgovern@spoon.beta.com>
2000-07-25 07:38:22 +00:00
jkh
f7500f7af7 Remove outdated crypto comments. 2000-07-24 18:45:25 +00:00
jkh
534da91803 Terminate, with extreme prejudice, the USAResident hack which
does bad things to /etc/make.conf in certain situations.  Also
soften the "don't install crypto from the USA!" messages since,
except for RSA (which is still noted), that's not so true anymore.
2000-07-24 18:00:16 +00:00
dwmalone
c0626c7786 Allow syslogd to select messages based on the originating host in
a similar way to the way it can select messages from a given program.

Lines beginning with "+hostname" or "#+hostname" select messaes
from that hostname and lines beginning with "-hostname" or "#-hostname"
match messages not from that hostname.

There are some significant style issues left in the original program
selection code and the man page. This should be cleared up in some
later commits.

Reviewed by:	sheldonh
Based on an original patch by:    Bernd Walter <ticso@cicely8.cicely.de>
Man page stylist:	sheldonh
2000-07-24 14:10:17 +00:00
marcel
35aeef29b5 Revert the reversion of the default mtree behaviour. The mtree
command now follows symlinks again.

Requested by: jkh
2000-07-24 02:57:27 +00:00
imp
58095102ff First attempt to fix a buildworld from -stable machine. Explicitly
include strtofflags.c from lib/libc/gen when building mtree until the
current dependency mess with mtree is fixed.
2000-07-23 06:15:54 +00:00
nsayer
90b09c328d apm -d also needs a writable file descriptor. 2000-07-23 04:49:43 +00:00
jhb
3c43673046 Oops, the moused disable option is now 6 instead of 4. Catch the menu text
up to this.

Submitted by:	Valeriy E. Ushakov <uwe@ptc.spbu.ru>
2000-07-23 03:45:18 +00:00
jkh
c652b1e4e2 If ${BINDIR} is not present, create it before installing to it. 2000-07-21 21:32:13 +00:00
jkh
c0840074ea Add a terminal entry for xterm; a lot of people are using xterms
in the serial-installation of FreeBSD.
2000-07-21 20:45:56 +00:00
jhb
ccad637f7a Add in the second half of the Slovenian FTP mirror entry. 2000-07-21 18:52:19 +00:00
jkh
1691652478 Remove a menu item that looks funky.
No donut for:	obrien
2000-07-21 06:50:14 +00:00
jkh
351079d6c9 Add slovenian FTP server to site list.
Requested by:	Blaz Zupan <blaz@amis.net>
2000-07-21 06:03:22 +00:00
jhb
846e786071 Fix this so it compiles by adding a missing quote. 2000-07-20 17:43:11 +00:00
archie
a5f47e2718 Remove unused variable.
PR:		bin/20052
Submitted by:	Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
2000-07-20 17:17:49 +00:00
brian
9466668148 Don't mis-interpret sockaddr_in6 structures as sockaddr_in structures
when purging routes.
2000-07-20 10:38:12 +00:00
davidn
35b42ab19e Move test for -w flag outside of the code dealing with -D (defaults).
This should cause -w's argument not to be ignored in the usermod case,
so it will affect modification of the user's password instead of using
the pw.conf (or internal default=no '*') password method.
PR:		bin/11168
2000-07-20 05:11:56 +00:00
davidn
94db016d55 Allow -g with an empty argument in the -D case. This allows -g "" to set
no default group (and thus fall back to user-based groups instead).
PR:		bin/5717
2000-07-20 04:37:00 +00:00
jhb
23f6448485 - Clarify some of the text in sysinstall in regards to the cryto bits.
- Note that we are up to about 3600 ports now rather than about 3000 ports.

Submitted by:	kris
2000-07-20 01:52:07 +00:00
davidn
c4d081a807 Fix another missed case where usermod would not set the "modified" flag:
-h - to set no password. But only mark modified if the account is not
already locked (i.e. first char of crypt password field is '*').
PR:		bin/19999
2000-07-20 00:09:29 +00:00
obrien
90867c9b4d Add ftp.freebsd.org Snapshots to the list of servers. 2000-07-19 23:59:01 +00:00
ben
291744d0a8 * document that 'kbdcontrol -k' needs stdin to be the console.
* add an example of how to switch the console keyboard to a USB keyboard.

PR:		18520
Submitted by:	n_hibma
Reviewed by:	sheldonh
2000-07-19 19:13:55 +00:00
archie
b055a8a669 Remove extra #include that was inadvertently added in previous commit. 2000-07-19 16:32:46 +00:00
archie
4b8df583be Fix breakage caused by ether_aton() prototype change.
PR:		bin/20033
2000-07-19 16:30:02 +00:00
brian
500d4d6905 Describe the new VERSION and COMPILATIONDATE macros and mention that the
``ident'' command will expand macros.
2000-07-19 10:14:00 +00:00
imp
eda0d0cadc When we're just reading info from the driver, attempt to open the apm
device read only so we can suppot a readonly apm device.
2000-07-19 06:34:02 +00:00
brian
9a38ef3d03 Support link identification from rfc1570
Two new commands are available; ``ident'' and ``sendident''.
2000-07-19 02:10:35 +00:00
phk
bbe00ac533 Add the '-l' flag to nghook which loops the received data back. 2000-07-18 16:52:27 +00:00
obrien
1edbe25abe Allow the Fix-it functionality to detect that we are on a serial console,
and DTRT rather than start the fixit shell on a non-existant vty.

PR:	19837
Submitted by:	Doug Ambrisko <ambrisko@whistle.com>
Approved by:	JKH
2000-07-18 09:14:06 +00:00
sheldonh
542bea8cf0 Correct the usage() message as per rev 1.25 of mtree.8 . 2000-07-17 11:00:55 +00:00
sheldonh
6352ad1f94 * Order options in the SYNOPSIS correctly.
*	Re-order the list of options in teh DESCRIPTION as per
	the SYNOPSIS.
   *	Move the description of exit conditions from the
	DESCRIPTION section to a new DIAGNOSTICS section.
   *	Typo fix: "effect" -> "affect" when used as a verb.
   *	Clear the Nm macro as appropriate.
   *	Typo fix: "consider" -> "considers" for a singular subject.
   *	Use Nx instead of NetBSD.
2000-07-17 10:59:38 +00:00
n_hibma
6429949771 And another buffer overflow. Maybe next time I should read the manpage for
strlen.

This one only occurs if there is exactly one element on the line without any
whitespace. This is however never a valid line, so not a big chance that
this would ever cause any problems.
2000-07-16 17:28:01 +00:00
ache
88c6f513f1 Fix getopt string I forget 2000-07-16 08:22:38 +00:00
ache
cf90e1b595 Revert back to original mtree default behaviour to not follow symlinks, to be
compatible with other *BSD camp.  Add -L option to follow symlinks, so remove
-P option which is now default. The next step will be to add -L to building
process.

Asked-by: 	bde
2000-07-16 07:55:07 +00:00
davidn
14da5481e1 Catch up to the fact that we now have tcsh in the tree. 2000-07-16 01:46:26 +00:00
wollman
fd23748f37 Admin some amount of responsibility for the current state of lpr/lpd.
Also add Garance Drosihn who has been doing a great deal of work on
print systems.
2000-07-15 02:43:02 +00:00
imp
8959045f6e Add documentation on the new logstr command. 2000-07-14 19:54:47 +00:00
imp
acd7546a67 Add new keyword "logstr". By default, we now use syslog outselves to
log insert/remove events using the logstr, if specified for that card,
or the manufacturer + version strings from the cis if not.  This
eliminates the need to have logger in the pccard.conf file which makes
it easier to move pcardd to /sbin later if we need to.  This also
reduces the pccard.conf file size from 53k to 28k, which will help the
install disk a little.

Also, minor cleanup of free usage (if (x != NULL) free(x); is
identical to free(x); for all versions of C that we care about).

Reviewed by: iwasaki (who proposed the logstr keyword).

Documentation and fixes to pccard.conf to follow.
2000-07-14 19:46:35 +00:00
ume
70f27cd4dd Add IPv6 scoped address support.
It enables us to control link-local connections by interface like
this:

    ALL : [fe80::%ed0]/10 : allow
    ALL : [fe80::]/10 : deny
2000-07-14 17:15:34 +00:00
jhb
749454075c Add ftp4.tw.FreeBSD.org.
Submitted by:	nik
2000-07-14 10:39:29 +00:00
sheldonh
22d1dfcab3 Fix the NAME section. Order the options which do not take arguments,
add the -P option (introduced in rev 1.22), and use mdoc word keeps
(Bk -words / Ek) for those options which do take arguments.
2000-07-14 10:30:36 +00:00
joe
58dad7500c Use -P instead of -S to specify that no symlinks should be followed.
There's no reason to make it different from cp(1), chmod(1), chown(1)
etc.

Requested by:	sheldonh
2000-07-14 09:37:59 +00:00
ume
7d6550f688 IPv6 support.
IPv6 configuration is only done by rtsol.  Does someone really
need manual configuration? :-)
You can specify IPv6 DNS server as well.
We have only one server ftp7.jp.freebsd.org that speaks IPv6
in this time.  ftp7.jp speaks IPv4 as well and also listed as
Japan #7.

Approved by:	jkh
2000-07-14 08:33:10 +00:00
jhb
e0c8d1d426 Ugh. Back out local changes that crept in with my last commit. :( 2000-07-14 08:09:50 +00:00
jhb
537ba4f731 MFS: (yes, from -stable) Note that current.FreeBSD.org is a 5.0 snap server
now, and replace the releng3 3.0 snap entry with releng4.
2000-07-14 07:59:44 +00:00
alfred
267667c9ec use _PATH_DEV 2000-07-14 07:55:26 +00:00
peter
d5b4e49e29 Oops. I originally extended the bcopy to 8 characters to include the
original \0 on the terminating string, however I changed my mind to
make it more obvious that the termination was being taken care of and
explicitly added the nul terminator.  I forgot to reset the bcopy length.
2000-07-14 01:22:07 +00:00
peter
758f41c92d Correct an additional off-by-one bug and buffer overflow. A malloc()
was being made one byte too short, and the string assembled in it was not
null terminated.  The string was passed to regcomp() so it never matched
anything in /etc/usbd.conf.  This is the cause of usbd not working for the
last few days..  The new malloc.conf default of AJ triggered this.
2000-07-14 00:29:00 +00:00
davidn
092cc1f8f9 Support propogation of file flags when building a homedir from the
skeleton directory.
sprintf() -> snprintf() cleanup.
PR:		bin/8756
Submitted by:	"Nickolay N. Dudorov" <nnd@itfs.nsk.su>
2000-07-13 23:52:49 +00:00
jhb
c882f3a97e - When we save the existing MBR to a file, check to see if the MBR we are
saving is boot0.  If it is, use its version number so that we can grab
  all of boot0 (1024 bytes with version 1.1 for example) when we save it
  to a file via the 'f' option.  Otherwise, we just save the first sector.
- Cleanup this code a bit by splitting some functionality out into separate
  functions.

Suggested by:	Patrick Bihan-Faou <patrick@mindstep.com> (1)
2000-07-13 23:05:05 +00:00
joe
4fa3dd4b5e Add a new command, 'cdid', to calculate and display a serial number
for a cd, using the algorithm that the cddb database uses.

Submitted by:	Sergey Shkonda <serg@bcs.zp.ua>
2000-07-13 22:56:43 +00:00
joe
ceabf93e2a Allow symlinks to be created if they appear in the mtree specification.
PR:	bin/14171
2000-07-13 22:28:39 +00:00
joe
dad66a4f4f Added a flag (-S) to mtree to specify that symlinks shouldn't be
followed.  This allows type=link matches to work properly and match
the link itself, instead of the file/directory that the link is
pointing to.
2000-07-13 22:13:42 +00:00
mckay
7b3c74238f Fix the ^D -> core dump problem properly. ^D == "quit" again. 2000-07-13 12:55:50 +00:00
brian
bf36609078 Permit multiple ``allow user'' lines in any given section
This avoids line length limits when large numbers of users are allowed
access to ppp.
2000-07-12 23:13:52 +00:00
dwmalone
6d86be7d4f Make builtin ident service work if the request arrives in more than
one packet. Also check that the whole request has been recieved
before processing it.

The patch isn't the exact one from the PR, but a slight varient
suggested by Brian.

PR:		16086
Submitted by:	Hajimu UMEMOTO <ume@mahoroba.org>
Reviewed by:	green
2000-07-12 20:49:06 +00:00
jhb
f965e9b866 Update boot0cfg to handle the new boot0:
- Allow for boot0 to be more than one sector long.  However, ensure that it
  its length is a multiple of the sector length.
- Change the signatures used to determine a valid boot0 as some of the
  signature code changed.
- Use the old signature to detect version 1.0 of boot0, otherwise read the
  version number from boot0 itself.
2000-07-12 18:15:06 +00:00
jhb
2913657a97 - Support MBR boot loaders that are larger than one sector size.
- Axe the 1024 cylinder checks as they are no longer relevant.
2000-07-12 18:08:27 +00:00
brian
8f207589cd Correct ``set filter'' usage
Spotted by:	sheldonh
2000-07-12 16:31:47 +00:00
brian
e19f8cf941 Fix a rather nasty latency problem that occurs with single tcp sessions
thorough an MP setup with only a single link.
2000-07-12 15:08:03 +00:00
rwatson
35e157aa95 o Other half of Sheldon's patch to fix initattr arguments, mistakenly
forgotten due to minimal sleep.  Thanks!

Submitted by:	sheldonh
2000-07-12 12:04:02 +00:00
rwatson
1bd6ff24a2 o update extattrctl man page to reflect obligatory arguments to initattr
-r and -w arguments

Submitted by:	sheldonh
2000-07-12 11:50:08 +00:00
davidn
da6b6c5e53 Detect and handle comment lines in master.passwd files.
PR:		bin/19664
2000-07-12 11:00:28 +00:00
rwatson
c61df96220 o Correct getopt() argument so that initattr -r and -w take an additional
argument via optarg.  This corrects a segfault when initattr is invoked
  with either of these two arguments.  Not sure how this got broken given
  that in the original patches it was fine -- presumably a merging
  mistake.

Obtained from:	TrustedBSD Project
2000-07-12 02:20:16 +00:00
kris
cada2988fa Don't call syslog() without a format string. 2000-07-12 01:43:55 +00:00
kris
54b13849f6 Don't call syslog() without a format string. 2000-07-12 00:50:49 +00:00
kris
b2ae75bb55 Don't call warn() without a format string. 2000-07-12 00:50:15 +00:00
kris
ce18c772bb Don't call err() without a format string. 2000-07-12 00:35:53 +00:00
kris
70fe80a15b Don't call syslog() without a format string. 2000-07-12 00:00:12 +00:00
brian
7bc7c104ee Allow a ``timeout secs'' filter option to let specific packet types
effect the idle timer in different ways.

Submitted by: Stefan Esser <se@freebsd.org>

With adjustments by me to document the option in the man page and to
give the same semantics for outgoing traffic as incoming.

I made the style more consistent in ip.c - this should really have
been done as a separate commit.
2000-07-11 22:11:36 +00:00
brian
c1aed73081 Fix -auto breakage introduced with the last commit. 2000-07-11 09:26:02 +00:00
green
305d74b0be Fix an off-by-one error which breaks this (detected by malloc flags):
the line being read in was terminated one byte too late.
2000-07-11 00:06:44 +00:00
ume
12abb72586 removed 'ifndef ADVAPI' parts
Obtained from:	KAME
2000-07-10 18:27:55 +00:00
ume
6ca9b7fd46 Activate mld6query. 2000-07-10 17:00:26 +00:00
ume
b3c761c77e This commit was generated by cvs2svn to compensate for changes in r62914,
which included commits to RCS files with non-trunk default branches.
2000-07-10 16:56:19 +00:00
ume
a75c47b60d mld6query sends an IPv6 multicast listener discovery (MLD) query packet
toward the specified multicast address.

Obtained from:	KAME
2000-07-10 16:56:19 +00:00
itojun
aafcd3ba19 Nm/Xr cleanup. requested by jp-man 2000-07-10 00:02:23 +00:00
itojun
8828d2bf40 use advanced API (-DADVAPI).
From: tkatayam@pi.titech.ac.jp (KATAYAMA, Takeo)
2000-07-09 03:07:48 +00:00
dannyboy
f3a0972556 Typo: "is unreliably by default" to "is unreliable by default".
PR:		19411
Submitted by:	Benno Rice <benno@netizen.com.au>
2000-07-08 14:12:34 +00:00
ume
d25c1d750e Sync with latest KAME.
Obtained from:	KAME
2000-07-07 19:19:25 +00:00
brian
9f59f2175a o Log the (payload/size) of all packet types, not just TCP packets
o  If the new ``filter-decapsulation'' is enabled, delve into UDP packets
   that contain 0xff 0x03 as the first two bytes, and if we recognise it
   as PROTO_IP, decapsulate it for the purpose of filter checking.

   If we recognise it as PROTO_<anything else> mention this for logging
   purposes only.

This change is aimed at people running PPPoUDP where the UDP traffic is
being sent over another PPP link.  It's desireable to have the top level
link connected all the time, but to have the bottom level link capable
of decapsulating the traffic and comparing the payload against the filters,
thus allowing ``set filter dial ...'' to work in tunnelled environments.

The caveat here is that the top ppp cannot employ any compression layers
without making the data unreadable for the bottom ppp.  ``disable deflate
pred1 vj'' and ``deny deflate pred1 vj'' is suggested.
2000-07-07 14:22:08 +00:00
sobomax
30c9e3b784 New option "-s" to query size of the installed package(s).
PR:		19445
Submitted by:	sobomax
Reviewed by:	knu
Approved by:	silence
2000-07-07 13:06:32 +00:00
kris
f5198f88cf Sync with latest KAME
Obtained from:	KAME
2000-07-07 07:35:51 +00:00
kris
2961019f38 Sync with latest KAME
Obtained from:	KAME
2000-07-07 07:25:56 +00:00
brian
c28629ce72 Correct setproctitle() call
Obtained from: OpenBSD
2000-07-06 19:51:58 +00:00
ume
46f05f722b Make compilable.
Reported by:	Ollivier Robert <roberto@eurocontrol.fr>
2000-07-06 18:17:08 +00:00
kris
39c8ef1c21 Add two files missing from the KAME sync
Submitted by:	Eric Sabban <esabban@pacbell.net>
2000-07-06 04:01:37 +00:00
kris
fc37193d75 Correct style bugs 2000-07-06 02:00:18 +00:00
kris
1c335da8a3 Sync with latest KAME code.
Obtained from:	KAME
2000-07-06 01:48:08 +00:00
kris
014fbe9293 Sync with latest KAME
Obtained from:	KAME
2000-07-06 00:38:07 +00:00
kris
be25e6d5a3 Sync with latest KAME
Obtained from:	KAME
2000-07-05 22:09:50 +00:00
kris
13d90d944f Sync with latest KAME.
Obtained from:	KAME
2000-07-05 21:54:07 +00:00
kris
66c44f6a43 Sync with latest KAME.
Obtained from:	KAME
2000-07-05 11:12:53 +00:00
kris
4bf2ee2817 Sync with latest KAME code.
Obtained from:	KAME
2000-07-05 11:00:58 +00:00
kris
e041633352 Sync with latest KAME.
Obtained from:	KAME
2000-07-05 10:14:11 +00:00
itojun
733c29e0b9 sync with more recent KAME tree. handles scoped IPv6 notation.
supports "delete" subcommand.
corrects PR 19663.
2000-07-05 08:42:07 +00:00
jkh
0e7721bc5f Replace phk's commit with code from my local tree which I happen
to like better (it's commented and easier to read).
2000-07-05 07:15:57 +00:00
itojun
d248c0293a sync with latest kame tree. more stable, p2p advert is corrected 2000-07-05 02:14:16 +00:00
itojun
7801c6efb5 sync with latest kame tree 2000-07-04 16:43:14 +00:00
itojun
0bbd943f40 synchronize with latest kame tree.
behavior change: policy syntax was changed.  you may need to update your
setkey(8) configuration files.
2000-07-04 16:22:05 +00:00
phk
993cb1d94f Ignore all md disks, installing on them would be particularly pointless.
Its not fatal to find hardware we don't know.
2000-07-04 13:46:43 +00:00
phk
0cb13df515 Yellow hat this way: forgot cvs add. 2000-07-03 17:39:24 +00:00
phk
aec15566c7 Experiemntal ascii based device configuration mechanism.
This may or may not survive, decision will be made well before 5.0-R
2000-07-03 13:34:18 +00:00
davidn
93ab0f9072 Fix breakage introduced by bypassing update for additional 'mod'
functionality when nothing had actually changed; -d changes would
not set the 'something had changed flag'. Actually test for a
change in homedir.
PR:		bin/19649
2000-07-03 12:13:10 +00:00
sheldonh
9d7c25c179 Explicitly state that mountd can be made to re-read the exports file,
even though this may seem obvious to some folks.

Requested by:	obrien
2000-07-03 11:43:48 +00:00
roberto
c30f721417 Add ftp4.fr.freebsd.org (aka altair.worldonline.fr) and ftp5.fr.freebsd.org
(aka ns1.bsdfr.org)

Strong MFC 4.1 candidate.
2000-07-02 14:25:26 +00:00
ache
c350a86095 Call login_close() to prevent parent from memory leaking in some
cases due to vfork()
2000-07-02 04:15:15 +00:00
ache
487d171b65 Prevent user from breaking his limits and restrictions or
abusing sendmail by any other way via MAILTO tag (since sendmail is running
from daemon). Now run sendmail from user, as any other cron user command.

Obtained from:	Inspired by OpenBSD, but implementation is different
2000-07-01 22:58:16 +00:00
ache
3f913e3f23 Make sure argv gets NULL terminated if cron entry has >= MAX_ARGS arguments
Obtained from:	OpenBSD popen.c v1.3
2000-07-01 22:37:02 +00:00
ache
018c31c01e Enable SIGCHLD to stop childs complaining to SIG_IGN of it.
It helps perl f.e.

Obtained from:	OpenBSD do_command.c v1.7
2000-07-01 21:25:33 +00:00
mph
13b4933d9e Quit on EOF from terminal instead of redisplaying the prompt. 2000-06-30 20:05:21 +00:00
roberto
631e23e87d Remove a comment that should not have been committed. 2000-06-29 08:15:47 +00:00
brian
c6cc4497b1 Further protection against comments in /etc/{passwd,group}
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
PR:		14269
2000-06-28 09:31:31 +00:00
brian
15dc9f70e6 kldload ng_ether if we need to. 2000-06-28 09:30:30 +00:00
wollman
485e9cac6a Fix description of -i' and -w' options.
Fix spelling of `TeX'.
Move historical formats into a separate list, to make thier cruftiness
clear.
2000-06-27 20:21:56 +00:00
des
af6a1c52dc Use libfetch instead of libftpio. This adds support for http and IPv6. 2000-06-27 11:00:07 +00:00
davidn
c85586d6d2 Don't dereference NULL in the userdel case. 2000-06-26 01:11:44 +00:00
markm
5342814957 Tiny manual correction; add mention of Kerberos 5. 2000-06-25 10:48:40 +00:00
markm
8e9e494b0d As rndcontrol is no longer needed, punt it to the attic. 2000-06-25 10:46:24 +00:00
brian
e37cd78ecc Don't assign an MTU based on the peers first-link MRU in MP mode.
Use the peers MRRU as we're supposed to.
2000-06-24 23:37:14 +00:00
ache
659df59b0e Localize ctype too.
Add weekday to showuser expired fields
2000-06-24 13:36:13 +00:00
imp
78429444cb MFPAO vis Iwasaki-san on the train from Tokyo to Osaka.
Document "reset", "iosize" and "memsize".  The code for these was
merged in some time ago.

Reviewed by: iwasaki-san
2000-06-24 05:51:35 +00:00
brian
8996addced Fix a printf-style arg cast (again) 2000-06-23 09:48:26 +00:00
brian
446b9bad35 e.g. -> e.g.,
Obtained from: OpenBSD
2000-06-23 09:48:02 +00:00
brian
567e3fdcca Introduce /etc/defaults/periodic.conf, similar in concept to rc.conf.
The only change in the default functionality should be that
the output reports are slightly more verbose WRT files deleted.

Not objected to by: freebsd-arch
2000-06-23 01:18:31 +00:00
brian
5008f3663f Correct PPPoE in multi-link mode
Submitted by: jason@OpenBSD.org
2000-06-22 20:51:03 +00:00
ache
77729ceb43 Localize time/date.
Use ISO 8601 date in logs.
Fix wrong argument type in ctype functions.
2000-06-22 16:48:41 +00:00
ache
23559508fb Use %Ef instead of hardcoded %b %e 2000-06-22 15:09:51 +00:00
sheldonh
0e384f31f6 Allow Nm to expand gracefully instead of hard-coding an argument. 2000-06-22 10:00:19 +00:00
sheldonh
a431fcbb99 Fix more HTML -> mdoc transcription errors.
Submitted by:	Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
2000-06-22 08:45:59 +00:00
wollman
dc44bff816 Allow those of us who have to print through LPRng spoolers to send
spooler options using `Z' control-file lines and the `-Z' flag.
2000-06-21 20:20:26 +00:00
chuckr
45479f641c Doubling the size of MAXSIZE because of large delta indigestion.
Submitted by:	Stefan Esser.
2000-06-21 13:34:16 +00:00
archie
f1f4c483fe When the 'msg' command is used from the command line, check for a
synchronous reply, and display it (if any) before exiting.

Requested by:	phk
2000-06-20 18:51:38 +00:00
brian
c14925aabb Remove ``nat pptp'' as this is now done transparently by libalias. 2000-06-20 12:18:40 +00:00
brian
be62e8bf23 Allow padding in LQR ECHO requests
Problem found by: Tomaz Borstnar <tomaz.borstnar@over.net>
2000-06-20 09:13:25 +00:00
brian
d765e4453f Don't mis-match interface names in iface_Create()
Submitted by: Adrian Penisoara <ady@freebsd.ady.ro>
2000-06-19 21:43:48 +00:00
green
6f89b9fc0e Fix a comment botch which broke buildworld. 2000-06-19 15:27:39 +00:00
roberto
9c3dcc7bed Bring the ancontrol buffer oflows fixes here too.
Submitted by:	Aaron Campbell <aaron@openbsd.org>
2000-06-18 23:45:17 +00:00
roberto
645dbbcce1 Fix potential buffer overflows (even if ancontrol is not setuid).
Submitted by:	Aaron Campbell <aaron@cs.dal.ca> from OpenBSD
2000-06-18 23:10:20 +00:00
roberto
cfda42a5ec Fix building with -DDEBUG. 2000-06-18 20:22:11 +00:00
brian
d043bb7c6c Fix a printf-style format error 2000-06-18 10:07:53 +00:00
davidn
15756f138e Fix obvious braino in assignment statement. usermod -g should work again.
PR:		17877
Submitted by:	pius@zyan.com
2000-06-18 02:48:56 +00:00
davidn
4a7877f9e8 Be a little more strict about handling command line args. This allows user and
group names like 'help' 'mod' 'user' 'group' etc. to work correctly without
requiring the -n style invocation.
PR:		misc/17069
2000-06-18 02:39:17 +00:00
davidn
1553afea75 Fix a long-standing bug in the rename case previously masked by another bug
just fixed in .db file updating.
2000-06-18 02:18:15 +00:00
davidn
faaa880c55 Second and hopefully final fix to .db sync when renaming a user; we must run
a full reindex in this case to remove the old record. #ifdef -u capability
since this is available on FreeBSD only.
PR: bin/16418
Problem pointed out by:	Masachika ISHIZUKA <ishizuka@ish.org>
2000-06-18 02:16:07 +00:00
joe
8de98cc2fa Switch over to using the new fflagstostr and strtofflags library calls. 2000-06-17 14:19:33 +00:00
brian
1c9174009e Handle comments and empty lines when generating YP passwd and group files
PR:		14269
Submitted by:	howard@ee.utah.edu
2000-06-15 15:51:49 +00:00
peter
4699eff3b4 Argh! I broke the static hints parser at the last minute on freefall when
I added the $FreeBSD$ (commented) line.
Fix:
 1: s/break/continue/
 2: will somebody please shoot me! :-]
2000-06-14 07:43:56 +00:00
peter
647ef85d48 Borrow phk's axe and apply the next stage of config(8)'s evolution.
Use Warner Losh's "hint" driver to decode ascii strings to fill the
resource table at boot time.

config(8) no longer generates an ioconf.c table - ie: the configuration
no longer has to be compiled into the kernel.  You can reconfigure your
isa devices with the likes of this at loader(8) time:
  set hint.ed.0.port=0x320

userconfig will be rewritten to use this style interface one day and will
move to /boot/userconfig.4th or something like that.

It is still possible to statically compile in a set of hints into a kernel
if you do not wish to use loader(8).  See the "hints" directive in GENERIC
as an example.

All device wiring has been moved out of config(8).  There is a set of
helper scripts (see i386/conf/gethints.pl, and the same for alpha and pc98)
that extract the 'at isa? port foo irq bar' from the old files and produces
a hints file.  If you install this file as /boot/device.hints (and update
/boot/defaults/loader.conf - You can do a build/install in sys/boot) then
loader will load it automatically for you.  You can also compile in the
hints directly with:  hints "device.hints"  as well.

There are a few things that I'm not too happy with yet.  Under this scheme,
things like LINT would no longer be useful as "documentation" of settings.
I have renamed this file to 'NOTES' and stored the example hints strings
in it.  However... this is not something that config(8) understands, so
there is a script that extracts the build-specific data from the
documentation file (NOTES) to produce a LINT that can be config'ed and
built.  A stack of man4 pages will need updating. :-/

Also, since there is no longer a difference between 'device' and
'pseudo-device' I collapsed the two together, and the resulting 'device'
takes a 'number of units' for devices that still have it statically
allocated.  eg:  'device fe 4' will compile the fe driver with NFE set
to 4.  You can then set hints for 4 units (0 - 3).  Also note that
'device fe0' will be interpreted as "zero units of 'fe'" which would be
bad, so there is a config warning for this.  This is only needed for
old drivers that still have static limits on numbers of units.
All the statically limited drivers that I could find were marked.

Please exercise EXTREME CAUTION when transitioning!

Moral support by: phk, msmith, dfr, asmodai, imp, and others
2000-06-13 22:28:50 +00:00
brian
37f3007f82 A few more hard-sentence breaks. 2000-06-13 10:03:28 +00:00
brian
f916881111 Hard sentence breaks and trailing space tidy-ups
Obtained from: OpenBSD
2000-06-11 14:58:32 +00:00
brian
e88906a1c1 Don't oan about padding characters 2000-06-11 12:22:06 +00:00
brian
41ff0cf693 Add ``set ifqueue'' to control the size of the outgoing packet
queue.  Doing ``set ifqueue 0'' and ``set urgent none'' will allow
full use of luigi's WF2Q code.

Requested by: luigi
2000-06-11 02:30:51 +00:00
peter
9fbe309bef A checkpoint of a part of a work-in-progress. Some more cleanups for
config(8).  This commit allows control of the creation of the
#include "foo.h" files.  We now only create them explicitly when needed.
BTW; these are mostly bad because they usually imply static limits on
numbers of units for devices.  eg: struct mysoftc sc[NFOO];
These static limits have Got To Go.
2000-06-10 22:13:40 +00:00
brian
a1cdd9887d Allow ``set urgent none'' to disable all urgent ports and IPTOS_LOWDELAY
prioritisation.

Requested by: luigi
2000-06-08 20:07:48 +00:00
kris
c8fe54863b Prevent a non-exploitable remote buffer overflow.
Reported by:	twitch <twitch@vicar.org>
Submitted by:	Guido van Rooij <guido@gvr.org>
Reviewed by:	security-officer
2000-06-08 03:54:45 +00:00
davidn
bb77488761 Fix db syncronization when username is changed with -l under usermod.
pw(8) was calling pwd_mkdb -u oldusername instead of newusername, so
the update appears to have failed until the next full pwd_mkdb
syncronization.

PR:		bin/16418
2000-06-06 07:33:00 +00:00
nyan
6a7aa7f3d9 - Remove obsolete PC-card boot.flp hack. It was for making both PC-card
boot.flp and plain boot.flp.
- Clean up crunchgen related routine.

- Add PC-98 support.
  TODO:
    o Documentation
    o Fix some messages for PC-98
    o Decrease the size of fixit.flp to 1.2MB
    o I18N (See: http://www.jp.FreeBSD.org/BootAsia/index.html)

No response from jkh
2000-06-05 13:17:23 +00:00
brian
2957ed6969 Specify a trigger address of 0.0.0.0 here so that we can sucessfully
negotiate with broken ppp implementations that won't supply an IP
number unless we suggest 0.0.0.0

Noted by:	Andrew Parry <andrew.parry@db.com>
2000-06-05 10:59:43 +00:00
asmodai
3b6210310f Fix typo.
PR:		18845
Submitted by:	Kevin <kevin@ns1.stcp.net>
2000-06-04 16:15:56 +00:00
hoek
a8a49218a7 Install mailer.conf as ${BINOWN}, ${BINGRP}, rather than root:wheel. This
lets unprivileged installworld: almost work first try and always work second.

BINOWN isn't quite right for this, but it's not really worth creating
a MAILOWN for this.
2000-06-04 01:20:58 +00:00
hoek
7e994844ce Use rm -f if the -f (force) option was given. 2000-06-02 04:32:37 +00:00
phk
cd07a5410e Add -y option which doesn't ask for confimation, but still shows progress
PR:		9259
Submitted by:	Clark Gaylord <cgaylord@vt.edu>
2000-06-01 22:27:30 +00:00
hoek
1e9a6591b3 Add a NO_LPR option. Useful for people who want to use LPRng.
PR:	bin/18787 (David Gilbert <dgilbert@velocet.ca>)
2000-05-31 21:45:15 +00:00
jkh
a40964c055 Update the australian NTP server entry.
Submitted by:	Peter Matthews <peter@netwise.com.au>
2000-05-31 21:40:50 +00:00
brian
af615e019d Use mp_CheckAutoloadTimer() rather than mp_StopAutoloadTimer()
when opening or closing an auto link due to the autoload
setting.

Spotted by: David Hedley <david@inty.co.uk>
2000-05-31 15:35:29 +00:00
brian
27d9c9b35a Don't use the umask to chmod local domain server sockets, use
the mask
2000-05-31 09:06:52 +00:00
msmith
9689622e57 /dev/rXXX -> /dev/XXX 2000-05-31 01:04:22 +00:00
msmith
e976c906e5 Don't do anything with /dev/rXXX 2000-05-31 01:03:26 +00:00
msmith
882dea157b Finish the /dev/rXXX removal job. With the libdisk fixes, this should
actually work again.
2000-05-31 00:57:48 +00:00
green
52697bb5ca Fix the ident server up more: use ssize_t/size_t/socklen_t/int all in the
proper places and make the fakeid parsing code a bit less stupid.  Also,
remove an "Rflag" that snuck in there (-R wouldn't be accepted by it,
anyway).
2000-05-30 22:51:05 +00:00
jhb
d4152c7d42 Fix a 64-bit'ism in the handling of the ident service. sysctlbyname() takes
a size_t as its 3rd argument, which is 64-bits on the alpha.  The 'len'
variable used was a int, which is only 32-bits.  Use size_t as the type
for 'len' to work-around this.
2000-05-30 18:32:58 +00:00
iwasaki
3777474658 Add regex(3) matching feature for card line strings.
- This feature will be enabled only if the string is
   enclosed by '/' something like;
	card "SunDisk" "/.*/"
 - Also added matching additional information strings
   followed by version string.  This is for the card which is
   difficult to idendentify by only the manufacturer and
   card version strings matching.
	card "MACNICA" "MIRACLE SCSI" "mPS100" "D.0"

Reviewed by:	imp
Obtained from:	PAO
2000-05-30 15:33:56 +00:00
ghelmer
4fe853adac Adjust the width of the first column in output from "sa -m" to match
the max length of user names.

PR:		bin/10905
Submitted by:	Ben Smithurst <ben@scientia.demon.co.uk>
2000-05-30 13:27:33 +00:00
charnier
2e7f60e876 Typo
Add FreeBSD Id
2000-05-29 20:23:04 +00:00
charnier
647e94937e Make use of .Ic asked by Sheldon. Spelling fix I missed yesterday.
Submitted by:	Sheldon Hearn <sheldonh@uunet.co.za>
2000-05-29 20:21:46 +00:00
charnier
aaa781a609 1000000 usecs to 1 sec conversion 2000-05-28 15:06:45 +00:00
charnier
b112a2cd58 Convert to errx() 2000-05-28 15:05:15 +00:00
charnier
fbe9a39586 Add prototype 2000-05-28 15:04:01 +00:00
charnier
03ecd86625 Use .Fx 2000-05-28 15:03:14 +00:00
charnier
2d96b5343d Do not add progname in err() strings, it will be printed twice 2000-05-28 15:02:26 +00:00
charnier
0d13eca3cc Simplify .Nm. Be consistent with subcommand name 2000-05-28 15:01:12 +00:00
charnier
8325f8844a Put ASCII under .Tn 2000-05-28 14:59:54 +00:00
charnier
72a6d2e2dd Dot not dot terminate in FILES and SEE ALSO sections 2000-05-28 14:59:02 +00:00
charnier
dc8bb722f5 match prototype 2000-05-28 14:57:49 +00:00
charnier
9ea62eb3d9 Do not dot terminate lines in FILES section 2000-05-28 14:56:04 +00:00
brian
8c66999e1d If the fsm header reports a length greater than the packet size,
drop the packet rather than just whinging about it in the log.
If the fsm header has a smaller length, continue to whinge.
2000-05-26 21:11:55 +00:00
brian
61fc03a88c Remove an unused variable 2000-05-26 08:29:11 +00:00
brian
c756c66b29 When we do a `dial'' or `open'' from DATALINK_READY, go to
DATALINK_CARRIER and turn off scripting.

This should fix instances where ``term'' is used followed by ~.
and then ``dial''/``open'' (it currently just sits there looking
at you).

Reported by: Tim Vanderhoek <vanderh@ecf.utoronto.ca>
2000-05-26 08:26:56 +00:00
jake
961b97d434 Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by:		msmith and others
2000-05-26 02:09:24 +00:00
obrien
06b6467218 Add the 'Z' key to the slice editor. Hitting it toggles the units the
sizes are displayed in.

Ok'ed by:	murray
2000-05-26 00:38:20 +00:00
brian
e959f1027d Fix a topy (if (expr); command;)
Submitted by:	Renaud Waldura <renaud@guppy.evolunet.com>
2000-05-25 16:12:55 +00:00
msmith
95109f69a6 Remove all of the block devices, correct major numbers to point to the
corresponding character devices.  This is (currently) untested, but
should be correct.
2000-05-25 02:48:15 +00:00
msmith
b642e2a419 Teach sysinstall about 'twe' disks. Note that this is currently
untested, and with the current state of flux surrounding the death
of bdevs other things here may need to change.
2000-05-25 02:28:50 +00:00
brian
600aec722a The name /var/log/alias.log is *not* likely to change in the near
future...
2000-05-24 20:56:30 +00:00
darrenr
b0e1948b4d add common.c to SRCS 2000-05-24 20:47:08 +00:00
brian
8fb3702804 Mention what ``enable proxy'' actually does 2000-05-24 13:49:39 +00:00
mpp
2541e16d9e Remove the lpr/runqueue directory and associated files.
These are not used anymore and are outdated and only cause
confusion (I just committed a fix to one of these files within
the last hour, thinking it was still valid).
2000-05-24 13:05:50 +00:00
mpp
58f40f38fd Re-implement my fix from rev 1.6 (same rev for both files being committed)
that was lost during the lite-2 merge.  From the original commit message:

Initialize the group list so that any filter programs that are
run by lpd are not run with root's groups.
2000-05-24 11:38:50 +00:00