summaryrefslogtreecommitdiffstats
path: root/sbin/badsect
Commit message (Collapse)AuthorAgeFilesLines
* Submitted by: Philippe Charnier <charnier@lirmm.fr>, added to by bdebde1995-04-021-8/+8
| | | | Fix all the warnings from `gcc -Wall'.
* Make this actually work. It always failed in FreeBSD because it attemptedbde1995-04-021-6/+27
| | | | | | | | | | | | | | to open the mounted block device containing the directory to put the bad sector files in, and opening of mounted block devices hasn't been allowed since Net/2 or before. Attempt to open the raw device instead. Be more careful about long names. Use lstat() instead of stat() to search for block devices so that my symlink to the default floppy doesn't cause problems. Check for truncation of the block number when it is squeezed through the mknod() interface. The maximum used to be only 32767, but now it large enough.
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-263-0/+347
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud