summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* style.Makefile(5):johan2004-02-2349-49/+49
| | | | Use WARNS?= instead of WARNS=.
* Connect gconcat(8) to the build.pjd2004-02-231-0/+1
| | | | Approved by: scottl (mentor)
* - Connect manual page for gconcat utility to the build.pjd2004-02-232-3/+2
| | | | | | - Fix usage. Approved by: scottl (mentor) (implicity)
* Added manual page for gconcat utility.pjd2004-02-231-0/+141
| | | | | Approved by: scottl (mentor) (implicity) Reviewed by: simon
* Report login attempts to syslog. Due to the statically-linked nature ofcperciva2004-02-222-1/+21
| | | | | | | | | | | nologin(8), this causes a considerable (100K) increase in the binary size, so I've added a NO_LOGIN_LOG option which disables this. While I'm here, s/sizeof(MESSAGE)/sizeof(MESSAGE) - 1/, in order to avoid writing the string-terminating zero byte. No complaints from: -current Approved by: rwatson (mentor)
* change baduser and badgroup from -2 to 65534, 65533rees2004-02-211-17/+13
| | | | | these should probably be looked up instead, but this is better than before also minor format changes for style(9)
* We can cross-reference to vlan(4) as long asyar2004-02-211-15/+38
| | | | | | | | the corresponding manpage has been committed. The rest of "vlan" words, which are refering to the technology itself, should be capitalized. MFC after: 1 week
* The hardware tagging capability is set on the physicalyar2004-02-211-1/+1
| | | | | interface that is parent to a vlan(4) interface, not on the vlan(4) interface itself.
* Mention that securelevel 1 also blocks access to /dev/io if itmux2004-02-201-2/+3
| | | | exists (not all platforms have it).
* Merge from RELENG_4 1.28.2.13: Fix saving system crash dumps larger thantjr2004-02-201-1/+1
| | | | 2 GB by using fseeko() instead of fseek().
* s/bytes/byte/phk2004-02-191-1/+1
|
* Add control utility for disk concatenation (GEOM_CONCAT class).pjd2004-02-192-0/+536
| | | | | Reviewed by: phk, scottl Approved by: scottl (mentor)
* Add a -n option that stops ip6fw making any changes to the rulesdwmalone2004-02-182-29/+58
| | | | | | | in the kernel. Submitted by: Orla McGann <orly@redbrick.dcu.ie> MFC after: 3 weeks
* remove dead coderees2004-02-171-53/+0
| | | | Approved by: alfred
* Report the difference between ufs and ufs2.grog2004-02-172-3/+16
| | | | Submitted by: "Christian S.J. Peron" <maneo@bsdpro.com>
* Explain what console names are valid.grog2004-02-171-0/+5
|
* Recognize if the user supplies the full pathname to /dev/console and friends,grog2004-02-171-1/+27
| | | | | | and DTRT. Explain if he supplies a pathname that is not in /dev.
* Remove unnecessary newlines from errx() arguments.tjr2004-02-171-4/+4
|
* Also remove "makedev" from the online help.le2004-02-161-2/+0
|
* Since DEVFS is mandatory, remove all instances to make_dev*. Keep thele2004-02-164-228/+3
| | | | | | | | "makedev" command for backwards compatibility, but just print out an informational message (this was the current behaviour, anyway) and remove it from the documentation. Approved by: grog (mentor)
* Support mounting ext2fs file systems with -async to the small extentbde2004-02-151-0/+1
| | | | | | | that ext2fs in the kernel supports async mounts. ext2fs used to effectively force the -async flag on. -async for ext2fs only gives async (more precisely, delayed) writes for inode updates, so it is barely worth using even when it is safe.
* Remove unused variable and related bogus checks.le2004-02-141-10/+3
| | | | Approved by: grog (mentor)
* Initial import of RFC 2385 (TCP-MD5) digest support.bms2004-02-113-4/+22
| | | | | | | | | | | | | | This is the second of two commits; bring in the userland support to finish. Teach libipsec and setkey about the tcp-md5 class of security associations, thus allowing administrators to add per-host keys to the SADB for use by the tcpsignature_compute() function. Document that a single SPI must be used until such time as the code which adds support to the SPD to specify flows for tcp-md5 treatment is suitable for production. Sponsored by: sentex.net
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-109-27/+0
| | | | | | | | These files had tags after the copyright notice, inside the comment block (incorrect, removed), and outside the comment block (correct). Approved by: rwatson (mentor)
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-101-1/+0
| | | | | | | | These files had tags at the start of the file (incorrect, removed), and after the copyright notices (correct). Approved by: rwatson (mentor)
* Reorder Xrefs in SEE ALSO.trhodes2004-02-101-5/+5
|
* Update to inform users of acls and multilabel options. Add Xrefs to thetrhodes2004-02-101-1/+20
| | | | | | | more relevant manual pages. PR: 62394 Submitted by: Marc Silver <marcs@draenor.org>
* Further simplify the code for printing the message buffer:iedowse2004-02-081-33/+36
| | | | | | | | | | - Ensure that the buffer ends with "\n\0" to avoid special cases and allow the use of strtol(). - Use strvisx() on each complete line instead of character by character. Submitted by: bde MFC after: 1 week
* Certain ICMP error replies cause ping to perform a reverse DNSiedowse2004-02-081-0/+6
| | | | | | | | | | | lookup on an IP address from the packet (such as the IP that sent a TTL exceeded error). If the DNS lookup takes a long time, ^C will appear to be ineffective since the SIGINT handler just sets a flag and returns. Work around this by exiting immediately on receipt of a second SIGINT when DNS lookups are enabled. PR: bin/4696 MFC after: 1 week
* Fix the last and most important bit of the test case to test the samephk2004-02-071-2/+8
| | | | | | binary as the rest of it. Add MD5 check that the md(4) device gets set up correctly.
* Correct order of arguments given to checkparity and rebuildparity.le2004-02-061-4/+7
| | | | Approved by: joerg (mentor)
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-055-10/+10
|
* Don't print the oldest line in the message buffer if the buffer isiedowse2004-02-051-51/+54
| | | | | | | | | | full, since that line is almost always incomplete. Make the parsing of <%d> lines more strict. Also simplify the logic a little: - Start off by making the buffer linear so that we don't have to deal with it wrapping around (suggested by bde). - Process line by line rather than byte at a time.
* Fixed operation of -f to match its documentation and fsck_ffs. Itbde2004-02-053-7/+6
| | | | | | | | | has now has no effect except in combination with -p, and plain fsck checks all file systems instead of skipping clean ones for msdosfs only. Renamed the force flag to skipclean and inverted its logic as in fsck_ffs.
* Fixed some bugs in checkdirty(). The check for the clean bit wasbde2004-02-051-9/+27
| | | | | | | | | | | | | | | | | | | combined with the the signature check in a wrong way (basically (dirty:= signature_recognised() && !clean) instead of (mightbedirty:= !signature_recognized || !clean), so file systems with unrecognized signatures were considered clean. Many of the don't-care and reserved bits were not ignored, so some file systems with valid signatures were unrecognized. One of my FAT32 file systems has a signature of f8,ff,ff,ff,ff,ff,ff,f7 when dirty, but only f8,ff,ff,0f,ff,ff,ff,07 was recognised as dirty for FAT32, so the fail-unsafeness made my file system always considered clean. Check the i/o non-error bit in checkdirty(). Its absence would give an unrecognized signature in code that is unaware of it, but we now mask it out of the signature so we have to check it explicitly. This combines naturally with the check of the clean bit. Reviewed by: rnordier (except for final details)
* Don't create a template file if we're not going to let the user edit it.des2004-02-051-19/+28
|
* Fixed some non-critical memory leaks and one temporary file leakpjd2004-02-051-1/+6
| | | | | | (theoretical). Approved by: phk, scottl (mentor)
* Document the dirty flag and other bits in the first 2 FAT entriesbde2004-02-051-0/+18
| | | | | | | | | | | | better. There is a related I/O error flag which we don't support in the kernel but must support here. (Support for bits that we don't understand here is mostly automatic by fail-safeness, but checkdirty() has fail-unsafeness.) There are some reserved and don't-care bits that weren't fully documented and aren't always masked properly. The comment about the bits in readfat() will be removed when the masking is fixed. Submitted by: rnordier
* Prepare to fix checkdirty() by moving it from check.c to fat.c. It isbde2004-02-052-43/+43
| | | | | identical to a subset of readfat(), so it belongs near readfat() if not in it.
* Add ifconfig support for network interface renaming. In the process,brooks2004-02-042-3/+49
| | | | | | | | reorganize the printing of the interface name when using wildcard cloning so it is not printed if it we either immediately rename or destroy the interface. Reviewed by: ru
* Mechanical whitespace cleanup. Also, note that previous commit wasdes2004-02-031-12/+12
| | | | Sponsored by: Teleplan AS
* Remove newline characters from error strings.des2004-02-031-2/+2
|
* Correct a typo and unbreak the build.nectar2004-02-031-1/+1
| | | | Pointy hat to: pjd
* Made use of MNT_USER flag and inform about user responsible for mountpjd2004-02-021-1/+5
| | | | | | | | | | | | | | | | | | | in those cases: 1. File system was mounted by an unprivileged user. 2. File system was mounted by an unprivileged root user. 3. File system was mounted by a privileged non-root user. Point 1 is when file system was mounted by unprivileged user (sysctl vfs.usermount was equal to 1 then). Point 2 is when file system was mounted by root, while sysctl security.bsd.suser_enabled is set to 0 and sysctl vfs.usermount is set to 1. Point 3 is because we want to be ready for capabilities. Reviewed by: rwatson Approved by: scottl (mentor)
* Spell "disklabel" correctly.ceri2004-02-011-1/+1
| | | | Approved by: ru
* Use memcpy plus a manual NUL termination when copying the interface namebrooks2004-01-311-3/+5
| | | | | | | from the sdl because strlcpy requires that the source string be NUL-terminated unlike strncpy. Submitted by: Peter Jeremy <PeterJeremy at optushome dot com dot au>
* Install a 'disklable' alias.obrien2004-01-311-0/+5
| | | | Technical Reviewed by: ru
* Sync with bsdlabel/Makefile.obrien2004-01-291-5/+9
|
* Add a very basic manpage.obrien2004-01-292-1/+71
|
* Style(9) option sortingguido2004-01-292-2/+2
| | | | Submitted by: Ruslan Ermilov <ru@FreeBSD.org>
OpenPOWER on IntegriCloud