summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* mount(8) only uses realpath() for the mountpoint, so don't look up thebde1998-01-191-6/+6
| | | | | | | | | | | | real path here for the mount device (or path). This fixes difficulties unmounting devices that are actually symlinks to real devices. Also, print the original path instead of the real path in early error messages. nfs path handling and later error messages may still be wrong, probably only in silly cases where the original path is both a symlink and a remote path. PR: 5208
* Don't create superblocks with size larger than SBSIZE (8192). Thebde1998-01-191-0/+4
| | | | | | | size was rounded up to a multiple of the fragment size, but this gave invalid file systems when the fragment size was > SBSIZE (fsck aborts early on them). Now a fragment size of 32768 seems to work (too-simple tests with fsck and iozone worked).
* Guard against a block size of 0 in the label. When the firstbde1998-01-193-0/+15
| | | | | | | | | | | | | | | | | superblock is invalid, fsck looks at the label to help guess where the next superblock should be. If the partition type is 4.2BSD, fsck assumed that the block size was valid and divided by it, so it dumped core if the size was 0. Initialization of the label was broken almost 3 years ago in rev.1.9 of newfs/newfs.c. Newfs does not change the label at all, so there is no problem (except the breakage of the automatic search for backup superblocks) unless something else sets the partition type to 4.2BSD. However, it is too easy to set partition types to 4.2.BSD by copying an old label or by using a disktab entry to create the label. PR: 2537
* Removed most unused includes of <net/if_var.h> outside the kernel.bde1998-01-161-2/+1
|
* Fixed some spelling errors.bde1998-01-161-2/+2
|
* Use err(3). Change exit(-1). Remove unused #include.charnier1998-01-141-35/+27
|
* Use err(3). Change exit(-1), and make exit values equal to 1 when errors.charnier1998-01-121-84/+52
| | | | Remove unused #includes.
* change s_port to ntohs(s_port) for printf in DEBUG.darrenr1998-01-112-4/+4
|
* Pass an actual empty environment to execle() as per POSIX rather thanalex1998-01-101-10/+28
| | | | | | | | | | | rely on undocumented behavior. The following fixes were obtained from OpenBSD: o -Wall fixes to tlist array initialization and assignment used as truth value. o Use a restricted environment. o Improved error message when shutdown fails to exec reboot or halt.
* Added environment parameter to execle calls.alex1998-01-081-3/+3
| | | | Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
* Bump up packet and byte counters to 64-bit unsigned ints. As aalex1998-01-081-14/+32
| | | | | | | | | | | | | consequence, ipfw's list command now adjusts its output at runtime based on the largest packet/byte counter values. NOTE: o The ipfw struct has changed requiring a recompile of both kernel and userland ipfw utility. o This probably should not be brought into 2.2. PR: 3738
* Correct a comment from my last commit.alex1998-01-081-2/+2
|
* Allow 'shutdown datespec' to work into the next century. Handle datesalex1998-01-081-1/+12
| | | | | in the 22nd century and beyond even though it's irrelevant with a 32-bit time_t which expires in the year 2038.
* Format mismatch in error message.alex1998-01-081-2/+2
| | | | Submitted by: bde
* Remove more unused #includes.charnier1998-01-071-3/+1
| | | | Obtained from: Bruce.
* Support listing/showing specific rules supplied on the command line.alex1998-01-072-29/+74
| | | | Use error codes from <sysexits.h>.
* Display a better error message and use a non-zero exit code whenalex1998-01-061-5/+16
| | | | | | | zero/delete operations fail. PR: 4231 Reviewed by: Archie Cobbs <archie@whistle.com>
* Add rcsid. Remove uneeded #include. Use fprintf() in usage() instead of err(3)charnier1998-01-051-8/+11
| | | | to make it print: usage: progname ...
* Sync. usage string and synopsis. Add rcsid.charnier1998-01-054-26/+27
|
* Add -v in usage string. Add rcsid.charnier1998-01-052-12/+12
|
* The default dumplevel is 0.steve1998-01-031-2/+2
| | | | | PR: 5413 Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
* Correct -r and -f descriptions.brian1998-01-031-9/+5
| | | | Suggested by: joerg
* Removed /etc/ld.so.conf reference from FILES section (people getalex1998-01-011-3/+1
| | | | | | | confused when they can't find it), but leave the reference to it as being a standard filename (which doesn't imply that it exists). Discussed with: jkh
* Properly drop group privs to open file names specified by the user.imp1997-12-301-1/+15
| | | | | Submitted by: Niall Smart rotel@indigo.ie Obtained from: OpenBSD (rev 1.7 and 1.8)
* Added copyright (taken from natd.c).alex1997-12-301-1/+9
| | | | Approved by: Ari Suutari <ari@suutari.iki.fi>
* Add a "scsi -f /dev/ssc -p" example and xref ssc(4).brian1997-12-291-9/+14
| | | | Make the other examples prettier.
* Mention that the -r flag reprobes the entire bus on which the givenbrian1997-12-291-14/+25
| | | | | device resides and that the -f flag must specify the `whole slice' if it's a disk.
* Fix a few style nits from previous commit.steve1997-12-291-11/+10
| | | | Submitted by: Bruce Evans <bde@zeta.org.au>
* Add missing .Ar.charnier1997-12-291-1/+1
|
* Get md5(1) to use getopt(3). Also some minor -Wall cleaningsteve1997-12-292-33/+50
| | | | | | | while here. PR: 5387 Submitted by: Matthew Hunt <mph@pobox.com>
* Typo/$Id$ police.alex1997-12-272-1/+6
|
* style(9) correctionsimp1997-12-264-8/+12
| | | | Submitted by: bde
* Put the return value of getopt into an int, not a char.alex1997-12-261-5/+4
|
* Be extra paranoid about trusting the length of the data returned byimp1997-12-241-1/+1
| | | | | gethostbyaddr. Submitted by: Julian Assange
* Two fixes:imp1997-12-241-6/+8
| | | | | 1) Correct strncpy usage 2) gethostbyaddr paranoia from Julian Assange
* Minor style nit noticed by bde.imp1997-12-241-2/+2
|
* Be extra paranoid about trusting the length returned by gethostbyaddr.imp1997-12-241-3/+3
| | | | Submitted by: Julian Assange
* Be extra paranoid about trusting the size of the address returned fromimp1997-12-241-2/+2
| | | | | gethostbyaddr. Submitted by: Julian Assange
* Remove unused include fileseivind1997-12-221-9/+3
| | | | Submitted by: bde
* Typo fix in the message displayed.max1997-12-211-1/+1
|
* Remove unused private header.eivind1997-12-211-2/+1
| | | | Submitted by: max
* Remove unused private include files from slattach.eivind1997-12-211-8/+3
| | | | Submitted by: bde
* Fixed overflow in chkrange(). Some out of bounds block numbers,bde1997-12-213-3/+3
| | | | | | | e.g. -1, were not detected. Use a bulletproof check that doesn't depend on special properties of the args or the limit. PR: 3528
* Fixed style bugs in the printing of statistics after preening. Usebde1997-12-203-45/+48
| | | | | | | | | | | floating point better in the percentage calculation there to avoid overflow when there are more than about 20 million fragments. Start using floating point in the other percentage calculation to avoid overflow when there are more than about 2 million fragments. Fixed printf format strings. Converted sccsid to rcsid.
* Don't attempt to print the statistics for a "clean" preened filesystembde1997-12-203-3/+3
| | | | | | | | | | | when there isn't even a filesystem. Attempting to print them tended to cause SIGSEGV or SIGFPE depending on how far setup() got before it returned 0. This was broken in the previous revision by removing a return statement that the previous case depended on falling into. PR: 4840 (fixed by this commit) PR: 2537 (possibly fixed by Lite2 merge and later changes. setup() does more checking now)
* Fixed some FUD (don't blame current msdosfs for old msdosfs+vfs_bio bugs).bde1997-12-193-24/+51
|
* The ``super scsi'' device is /dev/scc.brian1997-12-191-5/+2
| | | | I'm not sure it's fully functional though !
* Install sysctl in /sbin. It is used in some cases in network_pass1(),bde1997-12-181-0/+4
| | | | before /usr is mounted if /usr has type nfs.
* Fixed DPADD.bde1997-12-161-0/+2
|
* Oops..The default behaviour should be *not* to log all succeededguido1997-12-131-2/+2
| | | | requests. If you want this extra loggin, add the -l option.
OpenPOWER on IntegriCloud