freebsd-skq/sbin
Ian Dowse 6369218752 Fix a number of bugs and annoyances in fdisk, many of which were
pointed out by bde:
- Ask for user confirmation before adjusting to a head/cylinder
  boundary (only when running interactively), and separate this
  adjustment from the automatic calculation of c/h/s parameters.
- In sanitize_partition, don't change any values in the slice until
  we know that the automatic adjustment will succeed.
- When auto-adjusting, ignore unused slices and give an appropriate
  error for other zero-size slices depending on the cause.
- Change dos() to do all of the c/h/s calculations for a whole slice;
  this fixes a bug where the ending c/h/s of an unused slice was set
  incorrectly.
- When changing the active slice, detect the currently active slice
  number instead of always defaulting to slice 4.
- Call fflush(stdout) before calling fgets().
- Test for fgets() returning NULL so we don't loop on EOF.

Reviewed by:	bde
2001-08-05 16:24:13 +00:00
..
adjkerntz Fix a prototype and set WARNS=2. 2001-07-15 05:41:57 +00:00
atacontrol mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
atm Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
badsect Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
bsdlabel Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
camcontrol Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The 2001-07-26 11:02:39 +00:00
ccdconfig Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
clri Set WARNS=2 on programs which compile cleanly. 2001-07-15 10:30:46 +00:00
comcontrol mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
cxconfig Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
dhclient beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
disklabel Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
dmesg add -a to usage() 2001-07-14 21:56:04 +00:00
dump Sort options in DESCRIPTION. 2001-07-15 14:00:19 +00:00
dumpfs mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
dumpon Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
fdisk Fix a number of bugs and annoyances in fdisk, many of which were 2001-08-05 16:24:13 +00:00
fdisk_pc98 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
ffsinfo MFS: in HISTORY section, fix release number of first appearance 2001-08-01 12:15:21 +00:00
fsck Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
fsck_ffs Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
fsck_ifs Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
fsck_msdosfs Document "-F". 2001-07-19 17:06:19 +00:00
fsdb Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
fsirand - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
growfs MFS: in HISTORY section, fix release number of first appearance 2001-08-01 12:15:21 +00:00
i386 Fix a number of bugs and annoyances in fdisk, many of which were 2001-08-05 16:24:13 +00:00
ifconfig ifconfig if0 netmask xxx.xxx.xxx.0 didn't change the netmask. 2001-07-26 16:44:19 +00:00
init Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The 2001-07-26 11:02:39 +00:00
ip6fw mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
ipf Pick up the correct headers from sys/contrib/ipfilter/netinet. 2001-06-18 15:55:28 +00:00
ipfstat Fixed DPADD. 2001-06-23 09:10:48 +00:00
ipfw style(9) 2001-08-01 07:05:51 +00:00
ipmon Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
ipnat Pick up the correct headers from sys/contrib/ipfilter/netinet. 2001-06-18 15:55:28 +00:00
kget Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
kldconfig This is actually making its enterance in FreeBSD 4.4. 2001-08-01 05:53:12 +00:00
kldload Set WARNS=2 on programs which compile cleanly. 2001-07-15 10:30:46 +00:00
kldstat Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
kldunload mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
ldconfig mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
md5 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mdconfig Use MD_NAME and MDCTL_NAME constants where appropriate. 2001-07-18 13:32:38 +00:00
mdmfs Document -X. 2001-07-30 09:13:21 +00:00
mknod Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mount mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
mount_cd9660 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
mount_ext2fs mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
mount_hpfs mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
mount_ifs Nuke unused variables. 2001-06-24 23:31:07 +00:00
mount_msdosfs Add KOI8-U tables 2001-07-28 20:50:21 +00:00
mount_nfs Change the foreground mount behaviour so that we keep retrying 2001-07-21 15:38:37 +00:00
mount_ntfs Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mount_nullfs Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mount_nwfs Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mount_portalfs Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00
mount_std Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mount_umapfs Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mount_unionfs Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
mountd Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
natd mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
newfs Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
newfs_msdos - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
nextboot Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
nfsd Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
nfsiod Correct cross-reference: 2001-06-07 16:59:19 +00:00
nologin Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
nos-tun s/adress/address/ 2001-07-23 12:05:27 +00:00
pc98 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
ping Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
ping6 mdoc(7) police: don't xref to itself. 2001-07-04 14:04:16 +00:00
quotacheck Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
rcorder Import the NetBSD 1.5 RC system. 2001-06-16 07:16:14 +00:00
reboot Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
restore Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
route Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
routed mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
rtsol Sync with recent KAME. 2001-06-11 12:39:29 +00:00
savecore mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
setkey Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
shutdown Constify, de-register-ify, __unused-ify, and set WARNS=2. 2001-07-15 05:46:07 +00:00
slattach Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
spppcontrol Set WARNS=2 on programs which compile cleanly. 2001-07-15 10:30:46 +00:00
startslip mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
swapon Set WARNS=2 on programs which compile cleanly. 2001-07-15 10:30:46 +00:00
sysctl Document the deprecated `-w' option in the COMPATIBILITY section. 2001-08-02 12:38:23 +00:00
tunefs sprintf -> snprintf 2001-07-24 11:40:18 +00:00
umount Fix some bugs and general brain damage in mounttab: 2001-07-22 12:17:51 +00:00
vinum Add some features to libdevstat, and overhaul the interface a bit: 2001-08-04 18:25:48 +00:00
Makefile Fix disordering. 2001-07-09 11:06:47 +00:00
Makefile.inc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00