Commit Graph

8570 Commits

Author SHA1 Message Date
ache
d218d8d076 Use POSIX-style sort syntax in example 2002-09-24 20:15:11 +00:00
brian
f3374bb45c If the peer gives us 0.0.0.0 as his IP number, NAK it rather than accepting
it as being in range.

  set ifaddr 1.2.3.4/0 5.6.7.8/0

no longer allows 0.0.0.0 as a valid IP.

Reported/tested by:	Bohdan Horst <nexus@hoth.amu.edu.pl>
MFC after:		3 days
2002-09-23 22:40:43 +00:00
maxim
236b22fa5b Do not add a start offset time to the track duration time.
Submitted by:	Dmitry Afanasiev, <KOT@MATPOCKuH.SPb.Ru>
MFC after:	2 weeks
2002-09-23 15:00:23 +00:00
dcs
0a327f9db4 Introduce to the !program specification a capability similar to the one
that already exists for hosts: being able to specify a section that applies
to every program *except* the one in question.

The normal syntax for program specification is still valid. For the new
capability, one uses:

!-program

Since there is no way to specify a program beginning with a dash in the old
syntax, as it would be interpreted as the case above, the following
alternative syntax to the original capability is provided:

!+program

This shouldn't introduce incompatibilities with any syslogd configuration
in production because -stable's syslogd does not support a dash anywhere in
the program specification.

MFC after:	2 weeks
2002-09-23 11:59:19 +00:00
wollman
aa09d8b564 Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the struct
hack, thereby allowing future extensions to the structure (e.g., for extended
attributes) without rebreaking the ABI.  FTSENT now contains a pointer to the
parent stream, which fts_compar() can then take advantage of, avoiding the
undefined behavior previously warned about.  As a consequence of this change,
the prototype of the comparison function passed to fts_open() has changed
to reflect the required amount of constness for its use.  All callers in the
tree are updated to use the correct prototype.

Comparison functions can now make use of the new parent pointer to access
the new stream-specific private data pointer, which is intended to assist
creation of reentrant library routines which use fts(3) internally.

Not objected to in spirit by: -arch
2002-09-21 01:28:41 +00:00
markm
f49cc792fa The resolver library does a pretty acceptable set of domain
suffix attempts before failing. No need to try again by hand,
particularly when it fills your log with failures because
localhost.example.com..example.com fails to resolve. Also improve the
log message that helped find this error.

There is still (maybe) an uninitialised pointer problem here, but in a
month of testing I haven't triggered it.
2002-09-20 20:09:27 +00:00
markm
7214c4fb56 Kerberised NFS has never (as far as I can tell) worked outside
BSD 4.4. Nuke mention of Kerberos from the documentation here.

MFC after:	1 week
2002-09-20 20:03:27 +00:00
imp
0cbffe62f8 o Don't print devices that aren't attached unless run with the newly
minted -v flag.
o Print devices that don't return a name as 'unknown' in -v mode.

# Yea!  Now I wont think I have 10 different ISA network adapters in my
# laptop.
2002-09-20 02:26:58 +00:00
julian
6f7c625264 Pppctl seems to compile again now 2002-09-19 10:32:39 +00:00
jdp
1db483ab8c Use consistent terminology in the usage message, the man page
synopsis, and the man page description ("selector" vs. "sel" and
"addr" vs. "reg").

Fix the usage message and man page synopsis to show that the "value"
argument is not optional.
2002-09-17 18:10:39 +00:00
mike
e25a8d33e2 Don't depend on <sys/types.h> pollution in <sys/fcntl.h>. 2002-09-17 17:59:51 +00:00
nectar
5477187d2c Check for FD_SET overruns.
Approved by:	peter
2002-09-17 15:52:35 +00:00
jhb
f1acb2c2a8 Only include parent directory Makefile.inc if it exists. Now you can
cvs co acpi and build acpi utilities w/o needing the usr.sbin Makefile.inc.
2002-09-17 14:56:23 +00:00
peter
773f571480 Add i386 to the list of architectures that libc_r is broken on. This
effectively removes pppctl from the build for now.  It only compiles on
alpha now (now ironic).
2002-09-17 07:32:36 +00:00
peter
a51c9b6627 Initiate deorbit burn for the i386-only a.out related support. Moves are
under way to move the remnants of the a.out toolchain to ports.  As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL.  It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha
2002-09-17 01:49:00 +00:00
fenner
0f0a53d15f xids are u_int32_ts, which are not necessarily the same size as time_ts or
unsigned longs.  This fixes "ypbind -S ... -m" on sparc64.
2002-09-16 21:39:42 +00:00
takawata
8ed6aafe9d Add sleep state explanation.
Requested by: murray at Cafe in Tokyo.
2002-09-16 12:11:25 +00:00
dwmalone
fc1f61ef5f Add "-t" to useage message and comment. (The -t option was added
independently by Robert, but also proposed in the PR below).

PR:		38126
Submitted by:	Josh Elsasser <jre@vineyard.net>
MFC after:	1 month
2002-09-15 15:37:50 +00:00
dwmalone
6acc49e3bd Some BIOSs are using MTRR values that are only documented under NDA
to control the mapping of things like the ACPI and APM into memory.

The problem is that starting X changes these values, so if something
was using the bits of BIOS mapped into memory (say ACPI or APM),
then next time they access this memory the machine would hang.

This patch refuse to change MTRR values it doesn't understand,
unless a new "force" option is given. This means X doesn't change
them by accident but someone can override that if they really want
to.

PR:		28418
Tested by:	Christopher Masto <chris@netmonger.net>,
		David Bushong <david@bushong.net>,
		Santos <casd@myrealbox.com>
MFC after:	1 week
2002-09-15 15:07:55 +00:00
bmah
7297daa77a Update to use *.tbz suffix, also update example URL.
While I'm here, fix a gramm-o.

PR:		42576
Submitted by:	Jeff Ito <jeffi@rcn.com>
MFC after:	1 day
2002-09-10 02:42:59 +00:00
sobomax
a27edb29f8 Sigh, finally activate pkgwrap.c.
Big pointy hat to:	sobomax (who apparently needs some sleep)
Submitted by:		walt <wa1ter@hotmail.com>
2002-09-09 22:59:06 +00:00
bmah
19f78b220c Fix minor off-by-one error.
Submitted by:	jhb
2002-09-09 21:21:34 +00:00
bmah
cdaf5e1b40 Make pkg_install go to the right place for 4.6-RELEASE and 4.6.2-RELEASE
packages.

Pointed out by:	obrien
Reviewed by:	jhb
2002-09-09 19:44:17 +00:00
sobomax
60298c96b3 Introduce notion of the package tools revision and allow to wrap all tools
included into pkg_install according to the content of /var/db/pkg_install.conf
file, which specifies version and alternative location of the tools. Format
of the said file is very simple: one line which specifies revision of the
alternative version of the tools and their location separated by space,
i.e.:

20030102 /usr/local/sbin

This would allow bsd.port.mk to install and use up to date version of tools
on older system from ports.

Also add new `-P' flag to pkg_info, which causes it to report currently
installed version of package tools.

Discussed with:	will
2002-09-09 19:43:30 +00:00
knu
03f6ecd2b2 Add tcl81 that was missing. 2002-09-09 17:53:41 +00:00
nectar
f005a7d8a0 Back out previous commit. I was a bit overzealous: the fd_set size is
calculated dynamically here.
2002-09-09 16:43:18 +00:00
nectar
38c1241397 Check for FD_SET overrun. 2002-09-09 16:21:10 +00:00
nectar
bdb08fa9d1 Check for FD_SET overruns.
Obtained from:	NetBSD
2002-09-09 15:45:28 +00:00
sobomax
722d004d66 Kill debugging line occasionally slipped into rev.1.3.
Submitted by:	reg
2002-09-09 11:13:00 +00:00
sobomax
b02bdba749 Vastly decrease amount of memory comsumed in the case when we have to read
ports/INDEX, by allocating eactly amount of memory necessary for storing
each particular entry, insdead of 4K per entry (more than 7000 entries -
go figure). Memory consumption went down to some 500K from some 30M.
2002-09-09 08:00:32 +00:00
sobomax
5f3f30f263 Use --fast-read mode to extract metadata from package file. Since metadata
files are located at the very beginning of the package, this patch in
conjuction with latest tar(1) --fast-mode fix greatly speeds up pkg_info(1)
operation on package files.

MFC after:	1 week
2002-09-09 06:06:09 +00:00
sobomax
04cbb04f2e Allow edquota(8) to be used for setting up quotas non-interactively (add a
new -e option for that).

Feature requested by:	Alex V. Belinsky <fozzy@kievweb.net.ua>
MFC after:	1 month
2002-09-07 12:26:07 +00:00
dwmalone
1f58f0ce9d Make syslogd -u treat "*" as all levels by explictly setting pri_cmp
for it.

While I'm here, add a the ability to say "!level" in a way which
should be compatible with Linux's syslogd.

PR:		28935
No objections:	audit
MFC after:	2 weeks
2002-09-04 21:11:25 +00:00
dwmalone
31656d5090 When printing the wait status, break it down into a signal and a exit status.
PR:		41912
Submitted by:	Aaron Smith <aaron@mutex.org>
MFC after:	2 weeks
2002-09-04 21:00:45 +00:00
dwmalone
a8ad3be6d5 Swap sense of no_v[46]bind variables and rename as v[46]bind_ok -
this avoids some double negatives which are a bit difficult to
parse.

Always tread v[46]bind{,_ok} as booleans.
2002-09-04 20:31:53 +00:00
dwmalone
d766507fcc Fix parsing of unix domain entries after addition of IPv6 RPC support.
PR:		40771
Submitted by:	Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2002-09-04 20:15:20 +00:00
sobomax
667ea4927b When installing package from a local file assume that all subsequent
autoinstalled dependencies will have the same extension, not just
".tbz".

Pointy hat to:	obrien
X-MFC after:	-1 day
2002-09-03 06:59:33 +00:00
dwmalone
f72048605b Don't initialise policy, v4bind and v6bind where the variables are
declared - it was bad style and caused a bug. v[46]bind need to be
reset whenever we go to the "more:" label.

Jean-Luc and I came up with this patch independently, so it had
better be right!

PR:		40771
Submitted by:	Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2002-09-02 20:07:14 +00:00
dwmalone
7161284200 tpc -> tcp in an error message.
PR:		40771
Submitted by:	Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2002-09-02 20:00:46 +00:00
dwmalone
d78d977dab Clear up a few warnings (unused variable, rpc versions are usigned so use %u,
rename a parameter to avoid shadowing a global).

MFC after:	1 month
2002-09-02 19:58:15 +00:00
phk
5f194761d6 Switch over to the new EA manipulation utilities.
Sponsored by:	DARPA & NAI Labs.
2002-09-02 19:28:59 +00:00
brian
5070b14ce0 Unbreak -DNOINET6
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
MFC after:	1 day
2002-09-02 13:34:27 +00:00
kris
ed521becb9 Don't treat unknown commands as fatal errors: they are probably just
the signature of out-of-date pkg_tools and newer packages.

Reviewed by:	jkh
MFC after:	3 days
2002-08-31 20:21:47 +00:00
phk
d602476e03 Add the new userland tool for manipulating extended attributes.
This will replace the existing getextattr(8) and setextattr(8) with
a single binary responding to the names getextattr, setextattr,
rmextattr and lsextattr.

This program is not yet connected to the build.

Sponsored by: DARPA and NAI Labs.
2002-08-30 08:53:03 +00:00
sobomax
1b5413df63 Correctly handle ifr.ifr_flags/ifr.ifr_flagshigh like ifconfig(8) does.
MFC after:	1 day
2002-08-29 12:52:28 +00:00
brian
4a8007c87f - made ppp compliant to RFC 2472 (based on a patch from another
contributor)
- support ipv6cpretry and ipv6cpretries, which are IPv6 versions
  of ipcpretry and ipcpretries.
- improve handling of IPv6 link-local addresses

Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
2002-08-29 02:44:58 +00:00
brian
f2e99a8ed2 Include the correct file (stdarg.h) and use va_list rather than _BSD_VA_LIST_
Suggested by: mike
2002-08-27 20:11:58 +00:00
hm
f9fe2bb8db After dialling using -n, add the ability to wait for the first response
from the dialler, usually indicating success or failure. Add -v to add
verbose responses in addition to return values indication success or
failure. Update man page.
2002-08-27 14:46:22 +00:00
brian
b7dfdde9ad Use _BSD_VA_LIST_ rather than __va_list if it's defined 2002-08-27 04:37:04 +00:00
brian
9dd51f0cd2 Correct the FAQ url
Submitted by: Olivier Tharan <olive@oban.frmug.org>
2002-08-26 20:48:07 +00:00
reg
ea1a1404ad Don't dump core on packages with an invalid or empty PLIST.
Reviewed by:	markm
2002-08-26 13:25:48 +00:00
obrien
a4a2c1790b Grrr.... mumble.... a linger gzip'ism still existed.
Submitted by:	Craig Rodrigues <rodrigc@attbi.com>
2002-08-26 03:44:44 +00:00
charnier
aa31b7d1e4 Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:30:43 +00:00
imp
08dc290bd9 Remove extra args to printf
use Capabilities rather than Capacities.

Submitted by: kkenn
2002-08-25 06:15:50 +00:00
cjc
abd6ef6146 Don't give up on a remote log host when we get a EHOSTUNREACH or
EHOSTDOWN. These are often transient errors (when the remote host
reboots, temporary network problems, etc.), and we'd rather err on the
side of caution and keep trying send messages that never arrive than
just give up.

Note that this is not an implementation of the "back-off" methods
given in the PR. Those just seem too complicated. Why not just keep
trying each time? Trying and failing doesn't really consume
significantly more resources than if we were successful for each
message.

PR:		bin/31029
MFC after:	1 week
2002-08-25 06:05:25 +00:00
obrien
f564aa3816 Reorg just a tad to better express our bzip intentions. 2002-08-25 01:01:08 +00:00
obrien
3fd56acea6 Find remaining hardcoded gzip bits and change to bzip2 bits.
Mark with XXX so someone that cares about being able to handle either
bziped or gziped packages knows where the remaining nits are.
2002-08-25 01:00:16 +00:00
lioux
92447140f7 Preserve suid/gid permissions when extracting packages remotelly
fetched with -r option

Reviewed by:	will
Approved by:	will
2002-08-24 20:04:17 +00:00
schweikh
21677e31d6 Use "kbytes" instead of "blocks" in messages as this is really
what is calculated.

PR:		41936
Submitted by:	Lukas Ertl <le@univie.ac.at>
MFC after:	1 week
2002-08-24 11:03:48 +00:00
imp
be9b963545 Don't use NULL when we really mean 0 for call to pw_edit. 2002-08-21 19:01:50 +00:00
trhodes
136be46680 s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
mike
9e6f796b0d o Merge <machine/ansi.h> and <machine/types.h> into a new header
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
  macros, which are only MD because of gratuitous differences between
  architectures.
o Change all headers to make use of this.  This mainly involves
  changing:
    #ifdef _BSD_FOO_T_
    typedef	_BSD_FOO_T_	foo_t;
    #undef _BSD_FOO_T_
    #endif
  to:
    #ifndef _FOO_T_DECLARED
    typedef	__foo_t	foo_t;
    #define	_FOO_T_DECLARED
    #endif

Concept by:	bde
Reviewed by:	jake, obrien
2002-08-21 16:20:02 +00:00
roberto
e7ae2a11a5 Fix buildworld breakage.
Pointy hat:	phk
2002-08-20 15:58:44 +00:00
phk
01a6630ecb Be consistent about quoting things.
Be (somewhat) prepared for things to change size under us.
Recognize a empty attribute name as magic and print the list of attributes.
Use <err.h> for code clarity.
Deal with zero length returns.

Sponsored by:	DARPA & NAI Labs.
2002-08-20 11:33:25 +00:00
sobomax
25617b8fc0 Add a new -H' modifier, which when combined with -p' or `-P' allows to dump
full console history.
2002-08-19 16:33:23 +00:00
bde
a8e6e41c88 Include <nlist.h> for nlist interfaces instead of depending on namespace
pollution in <kvm.h>.
2002-08-18 17:57:08 +00:00
bde
d8025b239f Use essentially the same formatting of the CPU stats percentages as in
vmstat so that they never coalesce.  Both iostat and vmstat need larger
fixes to prevent wide fields from unnecessarily messing up the alignment
of all subsequent fields.

PR:		41674
MFC-after:	3 days
2002-08-18 17:51:14 +00:00
bde
971c6f16e0 Include <nlist.h> for nlist interfaces instead of depending on namespace
pollution in <kvm.h>.
2002-08-18 17:35:55 +00:00
sobomax
f6cebc0606 Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoid
breaking application ABI use unused ifreq.ifru_flags[1] for upper 16 bits in
SIOCSIFFLAGS and SIOCGIFFLAGS ioctl's.

Reviewed by:	-hackers, -net
2002-08-18 07:05:00 +00:00
alfred
6d7e27aceb Remove a case of exposing 'struct ucred' to userspace. Use a struct xucred
for LOCKD_MSG instead.

Requested by: rwatson
2002-08-15 21:52:22 +00:00
ru
ce971426f4 mdoc(7) police: Removed redundant .Ns calls. 2002-08-13 16:07:28 +00:00
sobomax
caa1520317 Ensure that origin field in the packing list structure is initialised. This
fixes problem when there are origin-less packages installed on a system

Reported by:	Mark Knight <markk@knigma.org>
MFC after:	3 days
2002-08-12 16:15:25 +00:00
hm
bab2f90e8c add support properly displaying and logging incoming telephone numbers (MSNs)
by looking at the "type of number" field and providing configurable hooks
to correct the numbers accordingly. See keywords add-prefix, prefix-national
and prefix-international in isdnd.rc(5).
This feature was implemented by Christian Ullrich <chris@chrullrich.de>
2002-08-12 07:53:55 +00:00
imp
395dec52c7 Warn that hex keys are the most portable.
Submitted by: Gregory Bond <gnb@itga.com.au>
Pr: 40872
2002-08-12 06:59:04 +00:00
dwmalone
049cb2e956 Fix conjugation of exists and add full stops to the messages I changed.
PR:		38481
Submitted by:	Kevin Kinsey <kadmin@elisha.daleco.biz>
MFC after:	1 week
2002-08-11 20:31:16 +00:00
hm
7465309faa add experimental support for Data over Voice (DoV) outgoing calls.
based on patches received from Guy Ellis (guy@traverse.com.au),
Chris Collins (xfire@xware.cx) and Phillip Musumeci (phillip@cs.jcu.edu.au).
2002-08-11 15:47:26 +00:00
mux
fdf494091a Update manpage to match the code, vfsload() isn't used
here since some time, kldload() is used instead.
2002-08-11 15:21:06 +00:00
mux
90e875280c Update manpage to match the code, vfsload() is not used
here since some time, kldload() is used instead.
2002-08-11 15:19:49 +00:00
schweikh
b2bb39b1eb Fix typos; each file has at least one s/seperat/separat/
(I skipped those in contrib/, gnu/ and crypto/)
While I was at it, fixed a lot more found by ispell that I
could identify with certainty to be errors. All of these
were in comments or text, not in actual code.

Suggested by:	bde
MFC after:	3 days
2002-08-11 13:05:30 +00:00
mikeh
5d9963ef28 Add break's to case blocks.
PR:		bin/41511
Submitted by:	Daniel Hagan <dhagan@acm.vt.edu>
2002-08-10 08:42:10 +00:00
jhay
49c32ba6e5 Teach sysinstall that documents on the boot floppy might not be gzipped.
Reviewed by:	ru
2002-08-09 07:44:43 +00:00
gshapiro
87f7a8db5e Apply the envp fix to the other call to main() as well.
Submitted by:	Peter Edwards <pmedwards@eircom.net>
2002-08-09 02:39:38 +00:00
iedowse
99ddd54c1f Improve the code for detecting UID ranges so that usernames such
as "2-xhibit" are not considered as a range. Fix a problem where
the code would forget to increment argv.

PR:		misc/15658
2002-08-09 01:21:03 +00:00
sos
12355fce84 Add DVD+RW support to the ATA driver and burncd. This also closes
PR40430 by "Peter Haight <peterh@sapros.com>" that has semilar patches
included and which I merged with my own work.

HW sponsored by: FreeBSD Foundation & FreeBSD Mall Inc

Enjoy!
2002-08-08 07:59:24 +00:00
ume
c9b1c6c3c7 Add capability for limiting the maximum number of simultaneous
invocations of each service from a single IP address.

Requested by:	matusita
Reviewed by:	dwmalone
Tested by:	matusita on snapshots.jp.FreeBSD.org
MFC after:	2 weeks
2002-08-07 17:03:14 +00:00
schweikh
3b969f79ee Typo: s/seperately/separately
PR:		misc/41235
Submitted by:	Fesskat Tudeer <freebsd-fesskat@fesskat.org>
MFC after:	3 days
2002-08-06 20:36:02 +00:00
dougb
14e8a8cb74 Suppress spurious warning messages about rm -rf TEMPROOT failing
before chflags, and exit non-zero if the old TEMPROOT dir
can't be deleted for whatever reason.
2002-08-05 08:47:52 +00:00
imp
37e0622098 Use wi_ltv_domains struct to print domains 2002-08-05 07:46:22 +00:00
imp
9abe2e2b0a Add more (possibly useless) information to wicontrol's output (maybe
some of these need to be enabled for an extra verbose mode or
something):
	o Try to print the dBm comms quality.  This may or may not be available
	  for your card in your configuration.
	o Print the PRI Id and STA Id.  These are in the raw format, so might
	  be a little hard to read.
	o Print CardID so that we can know exactly what kind of card the
	  user has (this is important if you download firmware to it).
	o Regulatory domains are now printed for the card.
	o Temp range is printed.
	o If you define WI_EXTRA_INFO you get more garbage than is listed
	  here that you need the manual to decode.
	o Channel list is now printed in hex for easier decoding.  This has
	  lead to my discovery that my US symbol card supports channels 12-14
	  as well as 1-11, which is not allowed in the us/canada.

This ain't pretty, but it isn't horrible either.
2002-08-05 07:36:11 +00:00
dougb
a7cb435634 Fix a couple DESTDIR related problems. Credit for the "Only in" section
goes to James <James_Bond_79@yahoo.com>, and Cyrille Lefevre
<cyrille.lefevre@laposte.net>. The make variables problem was found
by jon.
2002-08-05 01:03:12 +00:00
gshapiro
ce61bcc930 Pass envp to crunched program's main() routines as some depend on it.
Note that crunchgen's stub .c programs already have the code to use it:

	    "int _crunched_%s_stub(int argc, char **argv, char **envp)"
	    "{return main(argc,argv,envp);}\" >%s_stub.c\n",

Add $FreeBSD$ to allow the commit.

Reviewed by:	luigi
MFC after:	3 days
2002-08-04 22:14:44 +00:00
knu
5d26f7ef88 Another .tbz2 -> .tbz leftover. Properly look for pkgname.tbz.
MFC after:	1 day
2002-08-04 21:27:57 +00:00
knu
8713084d10 Drop support for the .tbz2 suffix. One would not want pkg_create(1)
to create "pkgname.tbz" when one specifies "pkgname.tbz2".

MFC after:	1 week
2002-08-04 21:20:09 +00:00
obrien
4d5c4f2b17 Use an 8.3 friendly extension when compressing with bzip2. 2002-08-04 06:03:34 +00:00
tjr
9cfc3cad44 Never allow a user to use crontab if opening /var/cron/{allow,deny} fails
for any reason other than ENOENT (think resource limits). Close allow and
deny files before allowed() returns to stop the user's EDITOR being able to
read them.

Obtained from:	OpenBSD (partially)
2002-08-04 04:32:27 +00:00
mux
f72ce2f014 Now that the kernel is able to load modules itself,
remove all the code which was trying to do so.
This code was nasty in several ways, it was hiding
the kernel bug where the kernel was unable to properly
load a module, and it was quitting if it wasn't able
to load the module.  The consequence is that an ABI
breakage of the vfsconf API would have broken *every*
mount utility.
2002-08-03 16:03:21 +00:00
imp
05e67f8dc7 gcc tells me that this isn't a prototype, and it is right :-) Use
ANSI decl here.  The old K&R one was copied from OpenBSD I think.
2002-08-03 07:31:57 +00:00
sobomax
ea0392402a When extracting package pass `-p' option to tar(1), so that files are
extracted with correct permissions.
2002-08-02 17:26:53 +00:00
rwatson
087e19f81f Add a libnames entry for libugidfw.
Add a DPADD line for ${LIBUGIDFW} for ugidfw.

Submitted by:	ru
2002-08-02 13:37:57 +00:00
rwatson
2f173ca43e Introduce support for Mandatory Access Control and extensible
kernel access control.

Provide ugidfw, a utility to manage the ruleset provided by
mac_bsdextended.  Similar to ipfw, only for uids/gids and files.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
2002-08-02 07:14:22 +00:00
blackend
019ef4b480 Fix links to the FAQ and the Handbook
Reviewed by:	re@
MFC after:	1 week
2002-08-01 10:20:59 +00:00
des
81f45956da Use struct xfile, not struct file. 2002-07-31 12:43:17 +00:00
blackend
38c0bac808 Correct URL to the FAQ
MFC after:	1 week
2002-07-31 10:05:00 +00:00
blackend
8ce62b66d8 Correct links to Handbook's pages, old URLs does not work anymore.
MFC after:	1 week
2002-07-30 21:04:26 +00:00
brian
ae9417246c Do a case insensitive comparison when comparing the ms-chap response
string.
2002-07-30 08:09:26 +00:00
jake
82b18a4bfe Fix int/size_t mismatch for sysctl arguments. Try not to introduce more
unsorting.

Reviewed by:	bde (unsorted version)
2002-07-30 04:45:14 +00:00
peter
6d477ea585 Use fchmod() to restore the tty modes. 2002-07-30 03:49:27 +00:00
ru
a8adf98c82 Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
2002-07-29 09:40:17 +00:00
hm
41bbd45191 Update, correct and bring in sync with reality all the i4b kernel
part manual pages - long overdue ...
2002-07-28 18:21:48 +00:00
fenner
0e3f6f62f9 Update for traceroute 1.4a12 2002-07-28 02:27:07 +00:00
dwmalone
b12dee0079 Make usage match options.
Approved by:	rwatson
2002-07-27 23:19:25 +00:00
fenner
a2853b07a0 Fix spacing for -P (policy) examples. 2002-07-27 21:06:06 +00:00
sobomax
c259f4f6b1 Don't dump all information about apm when only asked to enable/disable apm
functions (-e and -h switches). This should make apm(8) self-consistent, as
for example -d enable|disable doesn't dump such info.

MFC after:	5 days
2002-07-26 13:43:47 +00:00
robert
8d8219c5b9 When parsing the program name from the incoming log message
from a client, accept all printable characters as being part
of the program name, except ':' and '[', because each is a
possible delimiter.
2002-07-25 15:45:41 +00:00
robert
3be089e932 When reading a program name from the syslog configuration file,
do not stop copying it into a buffer when encountering a
non-alphanumerical character.  Only stop at unprintable characters.
This makes syslogd work correctly with executables like `interp.bin',
`httpd_old', etc.

PR:		misc/40941
MFC after:	1 week
2002-07-25 09:56:37 +00:00
peter
0168549826 Bah, I forgot to commit this part of the nfssvc() cleanup. Sorry folks. 2002-07-25 06:18:22 +00:00
jmallett
5dbc18b460 Change 'int pid' to 'pid_t pid'
Submitted by:	Bruce "Allah" Dang <bruce@research.teamxor.org>
2002-07-25 01:48:19 +00:00
peter
3bcac9affd If NO_MAILWRAPPER is set, and sendmail is still enabled, then install
a direct symlink to sendmail.
2002-07-24 22:17:22 +00:00
peter
635fd71e01 enable fdisk for ia64 as well as i386 2002-07-24 22:16:11 +00:00
peter
9addfd1396 Only install the mbr code on i386.. not ia64. This changes it from
#ifndef __alpha__ to #ifdef __i386__
2002-07-24 22:15:51 +00:00
blackend
7faee76c83 s/IPSEC/IPsec according to RFCs
PR:		in part docs/38668
Reviewed by:	charnier
MFC after:	10 days
2002-07-23 08:38:03 +00:00
fenner
d5467bd904 Add '+FreeBSD' to the version string, to reflect that this program
bears little relationship to the one from LBL with the same
 name and version number.
2002-07-23 00:56:52 +00:00
ume
cc156f1308 use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.
Approved by:	gad
2002-07-22 18:16:05 +00:00
ume
9c2c51a1e6 use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.
MFC after:	1 week
2002-07-22 15:22:53 +00:00
kan
751552f6c8 Initialize sockbits variable with FD_ZERO, to avoid passing a fd_set
with random garbage in lower bits corresponding to stdin, stdout and
stderr to select(2).

This fixes the problem with nfsd sometimes getting stuck in a tight
select(2) loop eating 100% CPU time.

Reviewed by:	iedowse
Approved by:	obrien
2002-07-22 14:01:44 +00:00
fanf
7dd5d080be Fix typo: corrisponds -> corresponds 2002-07-22 13:58:58 +00:00
imp
a76817b741 Copy cis strings into the kernel. 2002-07-22 06:58:24 +00:00
peter
64524dea16 Remove stray function prototype. I wrote and removed this function but
forgot the prototype.

Submitted by:	dd
2002-07-21 23:31:43 +00:00
peter
eef62e3d23 Check for missing static unit 'count' declarations as well. 2002-07-21 23:02:35 +00:00
peter
75dc92e250 Check that we are not supplying 'device foo N' to devices that do not take
a statuc unit count.
2002-07-21 22:23:56 +00:00
joerg
63afba9f66 Try to give a more descriptive error message for the pilot error of
attempting to export the non-root of a filesystem with -alldirs.  This
pilot error seems to be very common, and the "could not remount" error
message doesn't give much hints about the real reason.  See the old PR
below for an example.

While i was at it, make it possible to entirely omit the often
annoying error message in that case by specifying the "quiet" exports
flag.  This allows to specify something like

/cdrom	-alldirs,ro,quiet	<where to export to>

which will silently fail if nothing is mounted under /cdrom, but do
the rigth thing as soon as you mount something.

While doing this, i've put the embedded example in the exports(5) man
page into a subsection of its own as it ought to be.

Thanks for Paul Southworth for reminding me about this problem.

PR:		bin/4448
MFC after:	1 month
2002-07-18 20:52:17 +00:00
brian
0ffeeffe3e Remove unused calls to inet_addr() 2002-07-18 18:50:05 +00:00
ru
cd7c90d38f s/${INSTALL} -c/${INSTALL} ${COPY}/ 2002-07-18 12:07:49 +00:00
peter
f9fc595091 This is a userland tool, not a kernel component or libstand client. 2002-07-17 23:41:58 +00:00
dwmalone
1b350fbe36 Fix a spelling mistake.
PR:		40695
Submitted by:	Maxim Maximov <mcsi@agava.com>
MFC after:	1 week
2002-07-17 16:22:24 +00:00
gad
4b659b5a65 Changes which rewrite 'lpc topq', and which add 'lpc bottomq'. These
reflect much valuable feedback from wollman.  More details on the new
'lpc topq' are in the log message for revision 1.2 of lpc/movejobs.c.

The previous implementation of 'lpc topq' is available as 'lpc xtopq',
in case there are any problems noticed in the new implementation.  If
there are no problems with this version, a later update will remove the
'lpc xtopq' command.

Reviewed by:	freebsd-print@bostonradio.org
MFC after:	6 days
2002-07-17 00:51:19 +00:00
des
4de6bef145 Unbreak Alpha build. 2002-07-16 09:58:36 +00:00
alfred
df766765ba Add IPv6 support.
Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2002-07-15 19:40:23 +00:00
alfred
926cc1f5b3 add support for rpc IPv6 (rpc/udp/46 ...)
Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2002-07-15 19:09:33 +00:00
alfred
727d879eeb use getaddrinfo() instead of gethostbyname().
Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2002-07-15 19:02:45 +00:00
alfred
c94441aed3 Nuke unused variable. 2002-07-15 19:00:34 +00:00
alfred
c3235f750b do not call clnt_spcreateerror nor clnt_sperror with a NULL pointer, instead
pass an empty string.

Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2002-07-15 18:53:52 +00:00
alfred
83a53d0868 Port to TI/RPC and/or IPV6.
Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2002-07-15 18:51:57 +00:00
alfred
b53eff381d If an RPC fails, try a shorter reply in case the fault lies with the
size of the response.

PR: misc/26320
MFC After: 2 weeks
2002-07-15 18:34:27 +00:00
alfred
005eec7dbe de-__P().
WARNS=4 cleanup:
  include headers needed.
  don't initialize char * with const char *.
  fix main() declaration.
  fix shadowed variable.
  properly cast tcpcb members for printf(3) output.
  remove 'register'.
  remove unused arg.

Reviewed by: tmm, bde
2002-07-15 17:44:34 +00:00
des
5332a2b179 Comment out WARNS?=4 to unbreak the Alpha build. 2002-07-15 17:11:20 +00:00
des
71010f6257 Get rid of %qd, and unbreak Alpha build. 2002-07-15 16:05:15 +00:00
des
e0ecf9a222 Get rid of %qd, and unbreak Alpha build. 2002-07-15 12:17:31 +00:00
charnier
d2168fe021 The .Nm utility 2002-07-14 14:47:15 +00:00
bde
d738702902 Moved the setting of all profiling-related variables except the key one
(PROFLEVEL) to kern.pre.mk so that it is easier to manage.  Bumped config
version to match.

Moved the check for cputype being configured to a less bogus place in
mkmakefile.c.
2002-07-13 19:36:14 +00:00
gad
f9c62a94d6 Call routine to free everything obtained when filling in 'struct printer'.
MFC after:	3 days
2002-07-12 01:53:36 +00:00
gad
e2696cc497 Fix set_qstate() so it correctly checks for any error from chmod().
Note that set_qstate() is only called from several 'lpc' commands.

MFC after:	3 days
2002-07-12 01:37:06 +00:00
gad
793db011bb Add a SQS_QCHANGED option to set_qstate(). This will soon be used by 'lpc'.
Reviewed by:	freebsd-print@bostonradio.org
MFC after:	3 days
2002-07-12 01:31:46 +00:00
gad
43e8f81241 Add two variables to struct jobqueue, and change the way that getq()
calculates how much space to get for that struct, so it will get the
right amount when new variables are added.

MFC after:	3 days
2002-07-12 01:22:57 +00:00
gad
f95138e697 Move prototypes for ctl_readcf and ctl_freeinf from ctlinfo.c to ctlinfo.h,
so the routines can be called by an upcoming change for 'lpc topq/bottomq'.

MFC after:	3 days
2002-07-12 00:33:07 +00:00
alfred
ec5f2018ae WARNS=2, de-__P() 2002-07-11 22:50:36 +00:00
alfred
f77a6250b3 WARNS=4, de-__P() 2002-07-11 22:29:11 +00:00
alfred
d828b6f6ee Fix indentation broken in previous __P removal.
Grumbled about by: bde
2002-07-11 22:18:26 +00:00
alfred
088603aa7d WARNS=4, de-__P() 2002-07-11 22:11:20 +00:00
alfred
fc30cb8474 WARNS=4, de-__P() 2002-07-11 21:40:15 +00:00
alfred
ba97087db2 de-__P() 2002-07-11 21:28:16 +00:00
alfred
b790e6b937 WARNS=4, de-__P() 2002-07-11 21:26:41 +00:00
alfred
cef3a16df0 WARNS=4 2002-07-11 21:18:55 +00:00
alfred
9350b2dc7e WARNS=4 cleanup, de-__P() 2002-07-11 21:16:52 +00:00
alfred
a241579492 de-__P() 2002-07-11 21:13:37 +00:00
alfred
39c57be6b9 WARNS?=4 cleanup. 2002-07-11 21:12:18 +00:00
alfred
d9e0ad98f3 de-__P() 2002-07-11 20:53:56 +00:00
robert
b9f87c2ae0 Use the length modifier 'l' when supplying an argument of
type long to printf(3).
2002-07-11 20:10:07 +00:00
robert
c0716890f8 - Remove unnecessary inclusion of <utmp.h>.
- Cast a value to time_t before comparing it to another
   time_t to fix a warning.
2002-07-11 20:01:36 +00:00
alfred
db007fe41c de-__P() 2002-07-11 19:07:35 +00:00
alfred
d553d8cff7 mark unused variable. 2002-07-11 18:45:59 +00:00
alfred
0faf69ab9f conditionally set WARNS via ?=. 2002-07-11 18:45:14 +00:00
alfred
5071cb67d9 fixup for WARNS=4. 2002-07-11 18:42:53 +00:00
alfred
c40ae61c8c de-__P() 2002-07-11 18:31:16 +00:00
bde
26d377573f Set NO_WERROR to ignore the following warning which is emitted on
alphas:
    .../elf2aout.c:130: warning: cast increases required alignment of
    target type
The warning is about casting ((char *)e + phoff) to a struct pointer,
where e is aligned but phoff might be garbage, so I think the warning
should be emitted on most machines (even on i386's, alignment checking
might be on) and the correct fix would involve validation phoff before
using it.
2002-07-11 18:06:09 +00:00
alfred
8a8f54cf28 make mostly WARNS=4 clean.
constify, mark unsued args, fixup prototypes.
2002-07-11 17:55:14 +00:00
alfred
8677b99410 Log the IP of the machine if an invalid host is passed over the wire.
PR: bin/29406
2002-07-11 17:44:59 +00:00
alfred
2346687c8a Fix return values in the sm_notify_1 service routine to return an answer
most of the time (unless fork fails).  This should fix the problem where
FreeBSD won't respond to a remote host and therefor the remote hosts
tries indefinitely to contact the FreeBSD hosts thereby irritating the
system administrator.

PR: misc/27810
2002-07-11 17:39:50 +00:00
alfred
8f999c3422 Fix syslog format errors introduced in 1.6. 2002-07-11 17:36:09 +00:00
alfred
39199c8724 add includes for inet_ntoa prototype. 2002-07-11 17:33:47 +00:00
alfred
b611173b57 include string.h for strcmp(3) prototype. 2002-07-11 17:32:16 +00:00
alfred
a9f506168f include stdlib.h for exit(3) prototype. 2002-07-11 17:31:15 +00:00
alfred
9bbf00859f Do not allow unsafe characters in monitored hostnames.
This is modified version of the fix posted in the PR, I've taken Wollman's
advice and used strvis(3) to properly show invalid hostnames.

PR: bin/39815
2002-07-11 17:11:42 +00:00
alfred
d96c3f211e Add -h option to rpcbind, used to specify what address to bind to for
UDP requests.

Submitted by: mbr
2002-07-11 16:19:43 +00:00
dd
84e2792bd8 Remove some missing words.
Submitted by:	roam
2002-07-10 03:39:52 +00:00
dd
d7b7ec4cf0 Deuglify the usage message by making it look more like the synopsis in
the manual page.
2002-07-10 03:37:42 +00:00
dd
3e96616fd4 Add an -S option that allows the user to disable vty switching. It is
implemented using a new VT_LOCKSWITCH ioctl.  Although it is possible
to implement something like this by VT_SETMODEing to VT_PROCESS and
never releasing the vty, that method has a number of downsides, the
biggest of which is that some program has to stay resident for the
lock to be in effect.

Reviewed by:	roam, sheldonh
2002-07-10 03:31:25 +00:00
jmallett
2912bfd6c3 Use libcrypto.so.2 instead of .1, since we have it now. It should enable
DES for keyserv again.

Submitted by:	mbr

Kill a stray __P while I'm here.
2002-07-09 20:08:19 +00:00
iwasaki
57bb0b6ca4 Resolve conflicts arising from the ACPI CA 20020611 import. 2002-07-09 17:54:02 +00:00
bde
f6b851446c Fixed some world breakage caused by not updating clients when <timeconv.h>
was split off from <time.h>.  This became fatal here when -Werror was
reenabled.
2002-07-08 20:13:07 +00:00
gordon
61a367a107 Hook nfsd and mountd back into the build in /usr/sbin, where they make more
sense. Since portmap/rpcbind is in /usr/sbin it doesn't make any sense for
nfsd and mountd to be in /sbin.

For the record, NetBSD has them in /usr/sbin while OpenBSD has them in /sbin

PR:		bin/30972
Reviewed by:	jake (mentor)
2002-07-07 22:17:38 +00:00
charnier
a2accd01f0 The .Nm utility 2002-07-06 19:34:18 +00:00
obrien
9fcab75d96 We don't need to hit the user over the head so strong now that we've
fixed all the known warnings suffiently to not require NO_WERROR.

Ok'ed by:	peter
2002-07-06 01:07:48 +00:00
brian
d046f882cc Back out the previous revision
Objected to by: Andre Oppermann <oppermann@pipeline.ch>

After Andre's objection, I've re-examined rfc 2759 and noted that it
says that the domain name shouldn't be used when generating the
NT-Response field.  So it looks like the bug is in freeradius rather
than in ppp.
2002-07-04 23:33:35 +00:00
brian
9ba6d06dcf If we've given a domain name prefix as the authentication name, strip
it off before passing it on to the RADIUS server for authentication.
2002-07-03 20:51:13 +00:00
markm
3001e6d4c9 C rewrite of kbdmap/vidfont.
Submitted by:	Jonathan Belson <jon@witchspace.com>
OK'ed by:	wosch (Perl code maintainer)
2002-07-03 14:56:08 +00:00
jhb
6c4aef5050 Diff-reduce with 4-stable: 4.x has a compat4x package. 2002-07-02 21:07:25 +00:00
jhb
24b775c09d Call the 4.x snap server "releng4.freebsd.org" instead of
"stable.freebsd.org" to be the same as 4-stable.
2002-07-02 20:19:59 +00:00
jhb
73de95b413 Alpha does indeed have a COMPAT4X distribution on current. 4-stable
already has this correct.
2002-07-02 20:03:55 +00:00
jhb
03c9dba6df Add lge(4) to the list of drivers. It was present in 4-stable but not in
-current.
2002-07-02 19:56:26 +00:00