summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Fix manpage and usage() to reflect that -a can be used in combinationguido2004-01-292-1/+2
| | | | | | | with -o Submitted by: Ruslan Ermilov <ru@FreeBSD.org> Pointed out by: Ceri Davies <ceri@submonkey.net
* Removed duplicate $FreeBSD$ tag.ru2004-01-291-1/+0
|
* Unbreak -o fstab and -o current in combination with -aguido2004-01-291-0/+2
| | | | MFC after: 2 weeks
* This has been disconnected from the build since May 2003. GC it, asobrien2004-01-285-3134/+0
| | | | bsdlabel and sunlabel are what we use now.
* Style nit in previous commit.des2004-01-271-1/+1
|
* Preserve acls option on mounts when taking a snapshot.mckusick2004-01-271-1/+5
| | | | Submitted by: Wiktor Niesiobedzki <freebsd-lists@w.evip.pl>
* Use IFNAMSIZ instead of a magic value for the length of an interfacebrooks2004-01-272-4/+5
| | | | | | | | name. Prevent the kernel from potentially overflowing the interface name variable. The size argument of strlcpy is complex because the name is not null-terminated in sdl_data.
* Avoid dereferencing null pointers in fsck_ffs. (pfatal may return,cperciva2004-01-262-2/+7
| | | | | | | so it isn't a safe way of handling [mc]alloc failures.) PR: misc/61800 Approved by: rwatson (mentor)
* Add support for virtual interfaces. These have no phy chip and, hence, weharti2004-01-262-17/+60
| | | | need to handle interfaces without phy specially.
* o Pass a correct argument to errx(3).maxim2004-01-241-1/+1
| | | | | | PR: bin/61846 Submitted by: Eugene Grosbein MFC after: 1 week
* Fix bogus "ffsinfo -c 0" example with "ffsinfo -g 0 -l 4".blackend2004-01-231-1/+2
| | | | | | PR: bin/61472 Submitted by: Alex Popa <razor@ldc.ro> MFC after: 1 week
* grammarmtm2004-01-231-6/+6
|
* Clarify behaviour of ffsinfo: It appends to outfile withoutcperciva2004-01-231-1/+1
| | | | | | | | | removing any existing contents. PR: bin/61473 Submitted by: Alex Popa <razon@ldc.ro> MFC after: 7 days Approved by: rwatson (mentor)
* Userland signed char fixes for PPC build. Problems were using a chargrehan2004-01-226-11/+13
| | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe
* Cosmeticssos2004-01-211-1/+1
|
* Mark this manpage as i386-only.ru2004-01-212-1/+2
|
* Fixed spacing in previous revision.ru2004-01-171-1/+1
|
* - Build things in pure dictionary order (see sort(1)).ru2004-01-161-23/+38
| | | | | | | | | | - Unify the conditional assignments section so that architectural exclusions come first, then options and !options, sorted by the option name, also in directory order, then architecture specific sections, sorted by the architecture name, with i386 being a traditional exception. Prodded by: bde
* 802.11 mode bits are now masks; convert to suitsam2004-01-151-1/+1
|
OpenPOWER on IntegriCloud