summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Improve the format of the usage string output.mpp1996-12-092-7/+6
| | | | Submitted by: Sandro Sigala <sandro@cat.locao.net> as part of PR# 2134
* Minor formatting/style fixes.mpp1996-12-095-27/+15
| | | | Submitted by: Sandro Sigala <sandro@cat.local.net> as part of PR# 2134
* Fix typo in last patch. empty!=emtpypst1996-12-081-1/+1
|
* Change how SIGINFO is handled -- set a flag (of sig_atomic_t), and checksef1996-12-071-15/+34
| | | | | | | that flag on every iteration of the loop. This avoids calling fprintf inside a signal handler, which is always somewhat icky. Reviewed by: bde
* Fix math in SIGINFO printer.fenner1996-12-021-2/+2
|
* This update adds the support for != 512 byte sector SCSI devices tosos1996-12-014-13/+66
| | | | | | | | | | | | | | | | the sd & od drivers. There is also slight changes to fdisk & newfs in order to comply with different sectorsizes. Currently sectors of size 512, 1024 & 2048 are supported, the only restriction beeing in fdisk, which hunts for the sectorsize of the device. This is based on patches to od.c and the other system files by John Gumb & Barry Scott, minor changes and the sd.c patches by me. There also exist some patches for the msdos filesys code, but I havn't been able to test those (yet). John Gumb (john@talisker.demon.co.uk) Barry Scott (barry@scottb.demon.co.uk)
* Fix lots of non-bug questionable code:wollman1996-11-212-112/+155
| | | | | | | | | | | | | - Don't link against libkvm and don't uselessly include <kvm.h>. - Declare constant objects as const. - Declare functions with the correct types. - Call functions with the correct parameters. Not fixed: - The sysctl parsing remains ugly (but it may be the best we can do). - atnetrange() should use strtoul() rather than sscanf() for better error checking.
* For some reason the merge of this file didn't get committed properly.wollman1996-11-201-36/+71
| | | | | | Who has the conical hat? Make things compile again.
* Merge from vendor branch and use system MD5 library.wollman1996-11-199-922/+203
|
* This commit was generated by cvs2svn to compensate for changes in r19882,wollman1996-11-191-0/+325
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Last import was botched. Fix it.wollman1996-11-192-1/+334
| |
* | This commit was generated by cvs2svn to compensate for changes in r19880,wollman1996-11-1910-830/+2295
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Latest version of SGI routed courtesy of Vern Schryver. This versionwollman1996-11-1914-944/+2559
| | | | | | | | | | | | | | adds the capability to use MD5 authentication as defined in the latest documents. Submitted by: Vernon J. Schryver <vjs@mica.denver.sgi.com>
* | Move the terminal handling code to a later location; this allowssef1996-11-191-5/+6
| | | | | | | | | | | | | | the signal handlers to be set up; it also means that a failed name lookup won't mess up the nokerninfo setting of the tty. Reviewed by: pst, nate
* | Submitted by: Archie@whistle.comjulian1996-11-133-3/+27
| | | | | | | | clear the fmod flag if it's set.
* | Add mount_msdos(8) referenceache1996-11-102-2/+4
| | | | | | | | 2.2 candidate
* | Document that "ldconfig -m" rescans all directories previouslyjdp1996-11-091-3/+6
| | | | | | | | | | | | | | entered into the hints file, in addition to the directories named on the command line. 2.2 Candidate.
* | Fixed a bug in the handling of the directories in the search pathjdp1996-11-081-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that is stored in the hints file. If that search path contained a non-existent directory (one, say, that had been removed), and "ldconfig -m /a/perfectly/good/directory" was run, ldconfig returned an error status without printing an error message. This caused some confusing bombs when installing ports, in particular. I changed it so that non-existent directories from the stored search path are silently ignored. Only non-existent directories named explicitly on the command line are treated as errors. Also, a diagnostic is printed if and only if an error status is returned. In an unrelated fix, ldconfig now silently ignores any directories named on the command line when the "-r" option is given. Formerly, these directories incorrectly made their way into the "search directories" line of the listing. It really should be an error to specify directories together with "-r", but I don't have time to fix the manual page in that way right now. 2.2 Candidate.
* | Allow fdisk to be driven from a configuration file, making a 3rd-partyjkh1996-11-064-102/+1542
| | | | | | | | | | | | | | utility for front-ending its operation more of a possibility. 2.2-RELEASE candiate. Closes PR#1960 Submitted-By: Darryl Okahata <darrylo@hpnmhjw.sr.hp.com>
* | Fix a spelling error.jdp1996-11-051-1/+1
| | | | | | | | 2.2 Candidate.
* | Fixed backgrounding of ping, which was broken by the ^T changes in rev.1.3.bde1996-11-041-4/+4
| |
* | fix usage stringwosch1996-11-042-8/+8
| |
* | Delete another unnecessary #include <sys/mbuf.h>.wollman1996-11-011-2/+1
| |
* | Use fprintf(stderr,) instead of msgtail() so it works for restore as well.fenner1996-11-011-0/+1
| |
* | Temporarily disable an information message that was added in the lastpeter1996-11-011-1/+0
| | | | | | | | | | commit.. This causes a link error in sbin/restore which also uses this file.
* | Make rdump error messages a little clearer and make them look like dumpfenner1996-11-011-12/+35
| | | | | | | | | | messages, and make it explicit that stderr output came from the remote end. (e.g. "rmt: command not found")
* | If rcmd() fails, return immediately instead of trying a bunch offenner1996-10-281-6/+9
| | | | | | | | | | | | | | | | | | setsockopt()'s on a -1 file descriptor. Remove attempt to decrease TCP MSS; it makes no sense. Set the IP TOS to IPTOS_THROUGHPUT as an indication that this is an application sending large blocks of data, as recommended by RFC1700.
* | If passed the -d flag, mount devfs on /devphk1996-10-281-1/+12
| |
* | Don't give up just because we cant find the blkdev that correspondsphk1996-10-274-8/+12
| | | | | | | | to the name given as a chardev.
* | setuid back to the original caller immediately after opening the route socket.fenner1996-10-271-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Opening the socket is the only privileged operation route requires. Make a couple of static buffers bigger, and use strncpy() and snprintf() where there's a chance of overflow. Fixes PR bin/1903 Partially Submitted by: Ollivier Robert <roberto@keltia.freenix.fr> Don't look up the network number if we're being asked to add a host route. Fixes PR bin/1900 Submitted by: Bruce A. Mah <bmah@cs.berkeley.edu> (pr bin/1900)
* | Allow the specification of a mountpoint, and resolve it s disk devicejoerg1996-10-254-4/+64
| | | | | | | | | | | | | | | | using the fstab. Closes PR bin/129. Submitted by: jmg@nike.efn.org (John-Mark Gurney)
* | Moved #include of <sys/types.h> earlier so that this compiles whenbde1996-10-251-3/+6
| | | | | | | | | | | | <stdio.h> doesn't (bogusly) include <sys/types.h>. Cleaned up #includes.
* | Mention the historic mount options, as `deprecated'.joerg1996-10-221-0/+49
| | | | | | | | Closes PR # docs/735.
* | dumpfs blindly trusts that it has been handed a filesystem.phk1996-10-211-0/+7
| | | | | | | | | | | | | | If the magic is bad, don't waste our time. Submitted by: Giles Lean Giles Lean <giles@nemeton.com.au> Obtained from: NetBSD PR bin/249
* | Issue a warning if the user specifies an invalid interface in a rule.alex1996-10-171-1/+25
| | | | | | | | | | The rule is still added to the chain since the interface may get created later on after loading an LKM.
* | Bring back NS support for this utility - we need it for the commercial Novelljkh1996-10-162-1/+2
| | | | | | | | server software.
* | Fix my yesterday's brain-o: don't account for the kilobytes twice.joerg1996-10-141-1/+1
| |
* | Yikes! Originally, i intended to apply the patch from PR # 1322,joerg1996-10-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | but Bill has beaten me on this. ;-) However, he missed the part to compute the kernelsize in kilobytes, so the minfree consideration was now overcautious. (I've also changed the return type of dump_size() to void since int was useless.) Being here, the fact that `vmcore' was written world-readable was just a plain security hole: everybody who was able to crash a kernel could later read any confidential information out of it at his will. Create it with umask 077 instead.
* | The dos() function needs a new second argument, containing the sizebde1996-10-132-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the partition. Only if the size is 0 should the special handling of 0 as first argument be triggered. [This bug caused offset 0 to give C/H/S = 0/0/0 instead of 0/0/1.] The init_sector0 function needs to decrease the first argument to the second call to dos() by one to be consistent with the calls to dos() in change_part(). [This bug caused fdisk -i to create bogus partition tables with the ending C/H/S value 1 too high. This usually gives S = 1 instead of S = maximum, so the geometry guessing in the slice code and perhaps in SCSI BIOSes was defeated.] Submitted by: Tor Egge <tegge@itea.ntnu.no>
* | Make the savecore command work like the man page says:fenner1996-10-132-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | - make minfree work by getting the dump size before checking to see if the dump will fit on the filesystem - also fail to dump if no minfree is specified but there are not enough free blocks. Fix a typo in the man page. Fixes PR bin/1322 Submitted by: "Philippe C." <charnier@lirmm.fr>
* | Rewrote the section about the "normal" setting of the security level tobde1996-10-121-15/+16
| | | | | | | | | | | | | | match reality. Say that secured devices `may not be opened for writing' instead of `are read-only'.
* | Add a new option "-f hints_file" to specify an alternate file instead ofjdp1996-10-102-37/+37
| | | | | | | | | | | | | | "/var/run/ld.so.hints". Delete an incorrect statement about LD_LIBRARY_PATH from the manual page.
* | Fix the case where fsck would not see sparse directories and the kernel wouldguido1996-10-0816-5/+220
| | | | | | | | | | | | | | panic. If such a thing is fixed fsck needs a rerun (and bugs the user to do so). Reviewed by: Kirk McKusick
* | delete doubled words, e.g.: "the the" -> "the"wosch1996-10-053-5/+6
| |
* | When MODE SELECT'ing, the ``device-specific parameter'' field isjoerg1996-10-051-2/+2
| | | | | | | | | | | | | | reserved by the SCSI-2 specs. Hence, zero it out. Some drives (correctly) complain about this otherwise. Reviewed by: craigs@os.com (Craig Shrimpton)
* | Back out my -k changes; there's a better way to do this in the short-term.jkh1996-10-022-14/+5
| |
* | Add support for dset'ing an arbitrary kernel (experimental).jkh1996-10-012-9/+19
| |
* | Updates to deal with ld.so.hints version 2. It now deals with thepeter1996-10-012-18/+53
| | | | | | | | | | | | | | | | ldconfig path (from NetBSD). I added code to make sure there were no duplicates in the path when multiple ldconfig -m's were used. Reviewed by: nate, jdp Obtained from: NetBSD (partly)
* | Get rid of useless -f flag (though left for historical reasons).guido1996-09-302-3/+15
| |
* | .Os NetBSD -> .Os FreeBSD.wosch1996-09-281-1/+1
| | | | | | | | The pages are not NetBSD specific and FreeBSD is not a child of NetBSD.
OpenPOWER on IntegriCloud