Commit Graph

11170 Commits

Author SHA1 Message Date
bms
70b3eda27c Make clean for !INET6.
Remove non-FreeBSD code.
Sort includes.
2007-03-19 18:13:02 +00:00
bms
e6b26f1d88 Merge latest ifmcstat (with changes for FreeBSD).
Possibly merge or split with netstat -g.

TODO: Make !defined(INET6) clean.
TODO: Add -M/-N instead of -k.
TODO: Use sysctls instead of kvm.

Obtained from:	KAME
MFC after:	2 weeks
2007-03-19 16:45:06 +00:00
brueffer
330d710495 One more s/ethernet/Ethernet/ I missed in the previous revision. 2007-03-19 16:36:34 +00:00
trhodes
ec817b37e0 Improve previous commit by using setusercontext(3) and removing the group
option.  Bump doc date for manual page changes.

Reviewed by:	rwatson, ru, will (older version)
2007-03-19 12:12:53 +00:00
simon
07ef309a5a Update postfix MTA selection code to point at postfix 2.3 which is the
current version.

PR:		misc/110447
Submitted by:	Chris Fletcher <fletch.AT.brightsparks.net.au>
MFC after:	1 week
2007-03-17 16:43:28 +00:00
brueffer
df97d770b3 - Add cxgb(4) entry, remove stale wx(4) entry
- (gigabit|fast) ethernet -> (Gigabit|Fast) Ethernet

Approved by:	rwatson (mentor)
MFC after:	3 days
2007-03-16 12:56:20 +00:00
pjd
57ed96b72c Imagine a situation where:
# ls -ld /mnt/{foo,bar}
	drwxr-xr-x  3 root  wheel  512 Mar 16 06:56 /mnt/bar
	lrwxr-xr-x  1 root  wheel    3 Mar 16 12:10 /mnt/foo -> bar

	# grep /mnt/foo /etc/fstab
	/dev/da1	/mnt/foo	ufs	rw	0	0

Which means, we give symbolic link as a mount point to mount(8), but mount(8)
use realpath(3) before mounting the file systems, so we get:

	# mount | grep /dev/da1
	/dev/da1 on /mnt/bar (ufs, local)

Before the commit:

	# snapinfo /mnt/foo
	usage: snapinfo [-v] -a
	       snapinfo [-v] mountpoint
	# snapinfo /mnt/bar
	/mnt/bar/snap

This commit makes snapinfo(8) to first realpath(3) the given mount point and
now we have:

	# snapinfo /mnt/foo
	/mnt/bar/snap
	# snapinfo /mnt/bar
	/mnt/bar/snap
2007-03-16 12:36:54 +00:00
pjd
545f9291a9 Pass special device to the ufs_disk_fillout() function, instead of mount
point path. This way we properly handle the case when file system listed
in /etc/fstab was unmounted and another file system was mounted on the
same mount point.
2007-03-16 03:23:32 +00:00
kevlo
addad261ef In auth_script(), change the size of an array to match the number of
arguments.
2007-03-15 09:16:54 +00:00
kmacy
553b57167e fix include names 2007-03-15 04:09:40 +00:00
njl
e985b603ab Document exact command preferred for sending ASL as part of bug reports. 2007-03-14 22:55:30 +00:00
kmacy
210b1406c7 Add administration and debugging tool for Chelsio T3 10 Gigabit Ethernet driver 2007-03-14 02:51:57 +00:00
philip
50b3f4c302 Add dynamic acceleration to moused(8). This introduces a '-A' flag to control
the acceleration algorithm.  It can be used together with the '-a' flag for
regular acceleration.

PR:		bin/110003
Submitted by:	Oliver Fromme <olli -at- lurza.secnetix.de>
MFC after:	1 week
2007-03-11 20:02:26 +00:00
dwmalone
8355c667d5 Don't try to apply connection-per-ip rate limiting to unix domain
sockets.  Instead of rejecting all unix domain connections when the
-C flag is given, allow them instead. Aragon tested an earlier
version of the patch.

PR:		109315
MFC after:	2 weeks
Tested-by:	Aragon Gouveia <aragon@phat.za.net>
2007-03-11 16:30:49 +00:00
xride
4338152297 ! is a generic info message
Reviewed by:	harti
Approved by:	harti
MFC after:	2 weeks
2007-03-09 16:29:15 +00:00
trhodes
55ca7cf75c Initialize *pfh to NULL to quiet a gcc warning, not part of my original
commit because it was not part of the new code.
2007-03-09 09:40:23 +00:00
trhodes
2ade333019 Add support for dropping privileges to a specified user and/or group.
PR:		108523
Submitted by:	Dmitri Alenitchev <dmitri@dworlds.ru> (original version)
Reviewed by:	mpp (first reply to PR)
2007-03-09 09:33:19 +00:00
bms
f30e0457d4 Reduce WARNS count due to alignment warning on ia64. 2007-03-09 01:00:05 +00:00
bms
e76d938902 Merge a slightly cleaner and SSM capable mtest(8).
Submitted by:	Wilbert De Graaf
MFC after:	1 month
2007-03-08 18:56:37 +00:00
will
03b6c30cc0 Fix a bug where HOME was not allowed to be overridden by an user's crontab
as crontab(5) states it can be.  This is supported by all vixie-cron derived
implementations; not sure why FreeBSD was any different.

PR:		bin/106442
MFC after:	2 weeks
2007-03-08 07:00:42 +00:00
kevlo
d98014253f Use setresuid for simple privilege dropping. 2007-03-08 03:49:23 +00:00
ru
6c577a7377 Invoke tar(1) with the -p option when installing a package
from an URL (i.e., do it the same way as when installing
from a file).  This fixes the lossage of the setuid bits.
It wasn't a problem before because GNU tar(1) implied the
-p option for root, but BSD tar(1) doesn't do that.

Discussed with:	tobez and some advanced users :)
2007-03-06 14:54:45 +00:00
kevlo
8c9d3c018a Use sizeof() for calculating the buffer size instead of hard-coded values. 2007-03-06 09:32:41 +00:00
ru
e896f83bb5 The use of predefined strings such as \*[Ge] can be harmful here,
as some fonts (e.g., KOI8-R) have special symbols for displaying
them, and we want symbols ">=" literally here.
2007-03-04 13:30:02 +00:00
ru
d68ab910b0 Fix markup and clean up some of the wording.
(This English was hard to translate as it uses a language that is
far from a pure technical.  It would definitely benefit from a
revision.)
2007-03-04 13:14:41 +00:00
cperciva
634904f272 Fix problems resulting from SMP kernels (mis-)identifying themselves as
"SMP-GENERIC" (i386) or "GENERIC" (amd64).

FreeBSD 6.2 Errata candidate.

MFC after:	3 days
Pointy hat to:	cperciva
2007-03-04 00:29:42 +00:00
grog
090fca34f5 Clarify the meaning information printed by the -o option.
Clean up grammar, adding articles.
2007-03-03 03:50:59 +00:00
ume
c98add932d Check the return value from rad_cvt_ipv6prefix().
PR:		bin/89808
MFC after:	1 week
2007-03-01 16:13:56 +00:00
jmallett
9de761769b Increase helpfulness in diagnostic message - ypbind running without -ypset or
-ypsetme will prevent use of ypset.  Remind the user to check that it was
started correctly.
2007-02-28 22:49:12 +00:00
ru
23d66c2584 Fix a nit noticed during translation. 2007-02-28 10:24:34 +00:00
ceri
768807b57d Use the RB_AUTOBOOT define over 0.
Approved by:	ru (mentor)
2007-02-23 21:15:14 +00:00
emax
33ad295701 Check that the length of the received message is at least as big as a PDU
before we use pdu->len.

Submitted by:	Iain Hibbert
MFC after:	3 days
2007-02-23 19:37:47 +00:00
kensmith
4c5d959611 If floppies are used to boot the machine, the user lets the machine
complete the boot and enter into sysinstall, and only then inserts
a CD into the CDROM drive and tries to select that as the install
media the first call to mount(2) generates EIO but the second call
to mount(2) will succeed.  This was 100% reproducible on 6.2-RELEASE,
RELENG_6, and HEAD.  If the user inserts the disc into the CDROM
while the machine is booting off the floppies the first call to mount(2)
succeeds with no problems.  The problem was originally reported in
PR #56952 against 5.1-CURRENT so it's been there for a while now.

PR:		bin/56952
MFC after:	2 weeks
2007-02-22 20:29:53 +00:00
ceri
35ad72a9bf Bring these files up-to-date.
PR:		docs/108536
2007-02-18 22:41:41 +00:00
ceri
92e8d3a9b9 Clarify the description of the shutdown command. 2007-02-18 22:04:14 +00:00
trhodes
c81388536c Kill blank line at EOF. 2007-02-15 02:45:14 +00:00
jhb
2b4ab1557b Another crashdump fix: nfiles was renamed to openfiles in 5.x.
MFC after:	3 days
2007-02-14 04:20:41 +00:00
kevlo
7b85d23783 Eliminate duplicate header files. 2007-02-09 09:23:10 +00:00
pav
27ee9044d2 Fix a bug in 1.40 - it missed three occurences in pkg_info which leads to
(null)/file output.

MFC after:	1 week
2007-02-07 19:44:44 +00:00
jhb
fb9d72e60d Make iostat(8) fully work on crash dumps again (broken since 5.0):
- Pass the address of the variable we are reading to kvm_read() rather
  than the index into the nlist array.
- Properly report errors from kvm_read() which returns -1 on error, not
  0.

MFC after:	3 days
2007-02-06 20:29:40 +00:00
kevlo
5a57d3e796 getopt(3) returns -1, not EOF. 2007-02-06 08:48:28 +00:00
ru
3a4cc1b454 - Bump document date.
- Kill whitespace at EOL.
- Add missing markup bit.
2007-02-06 08:46:20 +00:00
kevlo
cf67f3127e getopt(3) returns -1, not EOF when out of args. 2007-02-05 07:35:23 +00:00
mpp
4e9c971afc Document that quotas must be turned off on a file system and
then turned back on in order for grace time changes to take
effect.
2007-02-04 14:26:01 +00:00
syrinx
029a8268f7 Remove all #if __FreeBSD_version checks now that RSTP support has been
MFCed to RELENG_6. We no longer need that to compile the bridge module
under both RELENG_6 and CURRENT.

Approved by:	bz (mentor)
2007-02-04 13:31:05 +00:00
mpp
2088a69616 If two files systems, /a and /b are marked as having quotas enabled
in fstab and they are normally mounted as /a/b, if /b is not mounted,
the various quota utilities will incorrectly operate with the quotas on
/a (silently) when operations are attemted on /b.

Sync up all the hasquota() routines between all the different
quota utilities and change it to detect if the file system we are
attempting to perform quota operations on is not currently mounted
and warn the user accordingly.

PR:	bin/38918
2007-02-04 06:33:15 +00:00
mpp
b1367bfe2c If quotas are not currently enabled for a file system, edquota -p
will operate directly on the quota file.  It will incorrectly write
the prototype user's usage information for each new quota it sets.

Fixed to read in the current quota information and update the
file correctly.

If quotas are enabled the kernel handles this case fine.

PR:	bin/15410
2007-02-04 01:41:32 +00:00
pjd
3910945fa0 Grr, committed manual page without the last change - make the comment a bit
prettier.
2007-02-03 00:15:46 +00:00
pjd
8d0230d761 Add support for multiple exports files. This will be useful for example for
ZFS, where we have automatically generated /etc/zfs/exports file, which
should not be edited directly.

Discussed with:	rwatson
2007-02-03 00:12:18 +00:00
jhb
04771e3c14 - Teach pciconf(8) to list the PCI capabilities supported by each device
via a new -c flag to be used with -l.  Some simple parsing code is
  present for the following capabilities: Power Management, AGP, VPD,
  MSI, PCI-X, HyperTransport, Vendor-specific, EHCI Debug Port, PCI-PCI
  bridge subvendor ID, PCI-express, and MSI-X.
- Fix a few warnings in pciconf.c.
- Update some cruft in pciconf(8):
  - PCI 2.1 is no longer a revolutionary standard, and subvendor ID's are
    fairly common at this point, so reflect that.
  - Header type 2 is used for PCI-CardBus bridges.
  - Describe the -v option for -l after completing the basic -l description
    instead of disrupting the flow in the middle.

Reviewed by:	imp (partially)
MFC after:	1 week
2007-02-02 19:54:17 +00:00
pav
4c4dfdea1b Fix previous rev.: don't step behind the end of memory we allocate 2007-02-01 15:52:47 +00:00
ade
9d9b206853 Remove hard-coded limit (200) on maximum number of packages that can be
added with a single invocation of pkg_add, replacing it with something
rather more dynamic.

Approved by:	portmgr (pav)
Tested by:	full pointyhat package run
MFC after:	1 week
2007-01-31 22:34:45 +00:00
erwin
11d416de5c Add gnustep and ports-mgmt ports categories.
Reviewed by:		simon
MFC after:		3 days
2007-01-31 19:13:08 +00:00
ru
313b16a488 Add missing library dependencies and sort libraries
using lorder(1) so that static linkage is possible.
2007-01-30 15:10:37 +00:00
ru
4c53b68afc Fix the logic bug that caused the custom versions of warn(3) and
warnx(3) to be compiled on systems that have it (e.g. FreeBSD),
while the intention was opposite, i.e., compile them on systems
that don't have them.  Also fixes static linkage of pkg_sign(1).
2007-01-30 15:09:30 +00:00
phk
a9e89efb64 Long overdue removal of vnconfig(8)
mdconfig(8) took over the job back when GEOM happened.

PR:	108360
Submitted by:	Alex Kozlov<spam@rm-rf.kiev.ua>
2007-01-28 08:53:48 +00:00
rodrigc
6204a21149 If nmount() fails to export a directory, in the syslog() error message,
add the errmsg string returned by nmount().
2007-01-26 13:26:43 +00:00
mpp
a6abba5b5e Display the name of the quota data file in verbose mode. 2007-01-24 22:52:32 +00:00
rodrigc
66215c66ac Decrease to WARNS=3. 2007-01-20 23:24:11 +00:00
rodrigc
1308f85b86 Clean up compilation warnings. Set WARNS=6 in Makefile.
PR:	71659
Submitted by:	Dan Lukes <dan obluda cz>
2007-01-20 21:35:11 +00:00
maxim
202535955d o Remove duplicate includes.
Obtained from:	Slava Semushin via NetBSD
2007-01-20 08:24:02 +00:00
brueffer
a700f4820b Fix a typo in a comment, introduced in rev. 1.19. 2007-01-16 19:46:05 +00:00
maxim
0f8d8970e4 o Remove duplicate #include <errno.h>.
Obtained from:	NetBSD (submitted by Slava Semushin)
2007-01-16 18:28:43 +00:00
murray
c1076bfc86 Provide a more accurate description of the size of the ports collection. 2007-01-16 10:29:10 +00:00
joel
1f2d2eae20 Fix typos. 2007-01-12 08:44:55 +00:00
sam
4280bacc67 add man page 2007-01-12 05:36:28 +00:00
sam
c8704d794f fix typo
MFC after:	1 week
2007-01-12 05:36:17 +00:00
ticso
d1730bc2bb MFp4: struct fsm_opt_hdr needs to be __packed as it is used as an array for
handling wire data
	This is required to get ppp working on arm.
2007-01-05 00:33:00 +00:00
mjacob
38968561b2 some whitespace cleanup (which I usually don't bother with)
so I could note that the previous delta was:

Reviewed by:	Mohan
2007-01-04 20:45:33 +00:00
mjacob
3bc2efe534 Add a function that checks for duplicate requests (based
on some fairly tight criteria) so we avoid having broken
clients spam rpc.lockd to death.

PR:		107530
Obtained from:	Doug Rudoff
MFC after:	1 week
2007-01-04 20:38:50 +00:00
ceri
84c2458fe2 During an upgrade, if /boot/kernel.prev exists then the backup of
/boot/kernel can fail.  Try to remove /boot/kernel.prev and cope the
best we can if that fails.

PR:		bin/106376
Submitted by:	Nobuyuki Koganemaru
Approved by:	ru
MFC after:	2 weeks
2007-01-01 17:25:51 +00:00
ceri
4bdfc1cce8 Clarify a comment. 2006-12-31 19:12:00 +00:00
ceri
ffc28b0f79 Fix typo. 2006-12-31 18:53:45 +00:00
cperciva
5c9342530c "block is set to UTC" -> "clock is set to UTC"
Submitted by:	csjp
2006-12-31 05:18:35 +00:00
bz
cda2e4ecca Re-connect snmp_bridge to the build. It survived a make universe
(apart from powerpc where the build broke earlier).
2006-12-29 19:24:51 +00:00
bz
999db60bea bridge_snmp.h
* Change the API of bridge_get_basemac to take a maximum buffer length.

bridge_if.c
* Adopt to new API.
* In bridge_attach_newif() remove an additional pointer to the buffer
  by shuffling the code a bit. Also makes the code more readable.

bridge_sys.c
* bridge_get_basemac():
  - Adopt to the new API.
  - Change check for error code of getifaddrs().
  - First check for sa_family != AF_LINK.
  - Copy sockaddr_dl * to get around alignment constraints on some
    platforms.
  - Use strcmp instead of strncmp so that "foo11" != "foo1".
* other functions:
  - Allocate n times of the struct we need instead of arbitrary len,
    cast to the type we want it to be and pass around struct *s instead
    of char *s. This gets us around alignment restrictions on some
    platforms and in addition it is more clear what data is passed around.
  - Name variables for same types consistently.

Reviewed by:    syrinx
2006-12-29 19:23:38 +00:00
yar
070982755d Fix a group of typos:
preceed -> precede,
preceeded -> preceded,
preceeding -> preceding.

Submitted by:	Andre Guibert de Bruet <andy@siliconlandmark.com>
2006-12-29 13:08:46 +00:00
ru
437e33cacc Fix markup and change some layout; no content changes. 2006-12-27 13:52:57 +00:00
cperciva
2f7cd8dc27 Add a sentence to the DESCRIPTION noting that updates aren't available
for -STABLE or -CURRENT.

Inspired by submission from:	Scott Robbins
MFC after:	3 days
2006-12-26 05:49:06 +00:00
ru
c766fb72f5 Simplify and improve the markup. 2006-12-25 18:36:53 +00:00
ru
b55d4e2508 Tweak some wording and markup. 2006-12-22 23:23:59 +00:00
ceri
c1ad055a2e Correct the description of minpoll and maxpoll.
Note that while later versions of the ntpd documentation use the term
"dual logarithm", the text added here is consistent with the remainder
of the current document.

PR:		docs/106926
Submitted by:	Jeremy Chadwick
2006-12-21 19:08:25 +00:00
bz
edaada5e3a ia64 is nit-picking according to tinderbox so temporary disconnect
the bridge module from the build until this is fixed.
2006-12-21 01:58:22 +00:00
syrinx
df49c9eb5b Connect the snmp_bridge(3) module to the build.
Approved by:	bz (mentor)
2006-12-20 22:08:35 +00:00
syrinx
6825c54d1f Keep in sync with the if_bridge(4) module (rev. 1.20 if_bridgevar.h,
1.12 bridgestp.h) and rename all PointToPoint related variables
from P2P to PTP (s/P2P/PTP/g s/p2p/ptp/g).

Approved by:	bz (mentor)
2006-12-20 22:02:45 +00:00
syrinx
ce61d899be Remove an unused variable.
Approved by:	bz (mentor)
2006-12-20 21:31:28 +00:00
yar
db978a9df5 Make grammar a bit more consistent in this document. 2006-12-20 06:21:51 +00:00
yar
c0437ba78a Allow for module-path being a semicolon-separated list of dirs.
This is consistent with kern.module_path sysctl and also compensates
for the unconventional syntax of asf(8) where the last of multiple
arguments is the output file, which prevents us from using the
traditional Unix syntax "foo file ..." to specify multiple module
dirs.

Submitted by:	emaste
MFC after:	1 week
2006-12-20 06:20:04 +00:00
erwin
d4c9673d94 - Add geography and spanish ports categories
- Use "related to" instead of "relating to" consistently [1]

Submitted by:   Rostislav Krasny <rosti.bsd@gmail.com> [1]
Reviewed by:    simon
MFC after:      3 days
2006-12-19 16:46:44 +00:00
n_hibma
22a6932ccb Don't exit from watchdogd on receiving a signal if we cannot stop the watchdog.
That'll require -KILL. This avoids resetting your system on one of the
watchdogs that you cannot disable.
2006-12-15 22:47:36 +00:00
syrinx
358a7eb8bf Do not add 'default:' cases inside a switch() on an enum like the
SNMP option argument. That way the compiler will give a warning in
case of a missing or an extra but unknown 'case:'.
Do the same for SNMP LEAF objects to be prepared once gensnmptree will
auto-generate enums for those too.
Add an abort() after the switch() instead of the 'default:' to catch
any errors. The nice side effect is that the compiler will correctly
track supposed to be 'uninitialized' variables with that.

When trying to set a value sanity check it before calling the OS
dependent API of snmp_bridge to tell whether it is an attempt to
set a bad value or a general error.

Suggested by:	harti (first part)
Approved by:	bz (mentor)
2006-12-15 20:01:57 +00:00
yongari
3130d113c2 Add msk(4) to the list of supported network interface. 2006-12-13 02:51:26 +00:00
erwin
2810e9967c Fix a typo ceri found while reviewing and I forgot to commit
in the previous version.

Submitted by:	ceri, matteo
Reviewed by:	cperciva

Also note that the last revision was:
Reviewed by:	ceri, simon
2006-12-11 11:01:13 +00:00
erwin
65d60cf2c0 Update the list of ports categories.
This is an updated version of:
PR:             85367
Submitted by:   linimon

Reviewed by:    simon
MFC after:      3 days
2006-12-11 08:54:17 +00:00
erwin
2aeee088cb Add a new turkish mirror
Submitted by:   Evren Yurtesen <yurtesen@ispro.net>
Reviewed by:    simon
MFC after:      3 days
2006-12-10 16:33:38 +00:00
syrinx
a7250df1fb Instead of explicitly initializing variables to avoid compiler warnings,
add a default case to handle the situation when the variables are not
initialized.
Furthermore, abort() if the snmp agent passes an invalid option to the
bridge module. As the option (SET, GET, GETNEXT, COMMIT, ROLLBACK) is
determined by the snmp agent based on the operation requested by user,
this behaviour is unlikely to be abused as a source for a DoS, but if
ever hit will likely reveal a problem in the snmp agent or bridge
module.

Approved by:    bz (mentor)
2006-12-09 20:58:26 +00:00
syrinx
d7ca8e25c2 Add support for RSTP (RFC4318) to the SNMP bridge monitoring module.
Approved by:	bz (mentor)
2006-12-07 22:36:17 +00:00
ceri
bb4b2a6105 Flush my typo fix queue for this directory. 2006-12-05 23:20:14 +00:00
ceri
4c62a0929b Fix typos. 2006-12-05 23:05:53 +00:00
erwin
55824297c8 Add ftp.il.freebsd.org to the IPv6 server section.
Submitted by:	Rostislav Krasny <rosti.bsd@gmail.com>
Reviewed by:	simon (also previous commit)
MFC:		3 days
2006-12-02 09:58:01 +00:00