NetBSD/sbin
abs cb52ff7f22 Fix some interesting disklabel lossage:
If the input to 'disklabel' (non -i) referenced a partition two or more
larger than that permitted by npartitions it would error out with 'bad
partition name' (and the option given to re-edit if -e). If a partition one
larger was used it would be dropped from the disklabel with a warning and the
label written anyway! The (off by one) check for a bad partition name was
against npartitions anyway, rather than MAXPARTITIONS. npartitions was just
read from the disklabel and could have been set to an arbitrary value.

Given 'disklabel -i' sets npartitions automatically, make the normal case
check partition names against MAXPARTITIONS, and if necessary increase
npartitions to the size needed to hold the last partition used.

While here remove two 'write only' uses of a 'part' variable.
2004-06-22 18:32:45 +00:00
..
atactl Print the raw SMART values always. These are important in a bunch of cases -- 2004-03-28 01:23:15 +00:00
badsect Don't require ffsv2 suberblocks to have FS_FLAGS_UPDATED set 2004-03-27 12:52:16 +00:00
bim
brconfig
ccdconfig
cgdconfig
chkconfig
clri Don'r check FS_FLAGS_UPDATED for ffsv2 2004-03-27 12:53:53 +00:00
disklabel Fix some interesting disklabel lossage: 2004-06-22 18:32:45 +00:00
dkctl
dmesg Bump date for previous; add comma in SEE ALSO; use Dv instead of Em. 2004-04-30 16:11:03 +00:00
dump Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD. 2004-05-25 14:54:55 +00:00
dump_lfs
edlabel
fastboot
fdisk Insert missing space so fdisk prints "primary partition table 2004-05-19 07:36:14 +00:00
fsck Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
fsck_ext2fs Remove option letter from getopt string, since it does not 2004-05-13 00:18:46 +00:00
fsck_ffs Use pread()/pwrite(). 2004-06-12 01:35:46 +00:00
fsck_lfs pass5: dereference of an uninitialized pointer. 2004-05-14 10:41:12 +00:00
fsck_msdos
fsdb
fsirand Don't use 1st alternate superblock at offset 64k for ffsv1. 2004-03-21 20:12:16 +00:00
ifconfig
init clear_session_logs is not needed when we are small. 2004-06-06 01:42:20 +00:00
ldconfig
lmcctl
mbrlabel
mknod Completely rework how tools/compat is done. Purge all uses/references to 2004-06-20 22:20:14 +00:00
modload Put -T in usage output. PR#25875 from Kouichirou Hiratsuka. 2004-06-08 19:25:16 +00:00
modunload
mount Print fsid on verbose printing. It is useful when debugging nfs. 2004-04-30 00:48:07 +00:00
mount_ados
mount_cd9660
mount_ext2fs
mount_fdesc
mount_ffs
mount_filecore
mount_kernfs
mount_lfs Fix SEE ALSO; remove .sp; put .Pp before sentences. 2004-06-10 14:13:36 +00:00
mount_msdos
mount_nfs Came in here to add nfsstat(1) reference in SEE ALSO, 2004-05-05 00:21:00 +00:00
mount_ntfs s/the the/the/ (only in sources that aren't regularly imported from 2004-04-23 02:58:27 +00:00
mount_null Fix SEE ALSO; remove .sp; put .Pp before sentences. 2004-06-10 14:13:36 +00:00
mount_overlay Fix SEE ALSO; remove .sp; put .Pp before sentences. 2004-06-10 14:13:36 +00:00
mount_portal
mount_procfs
mount_smbfs
mount_umap
mount_union
newbtconf
newfs Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
newfs_lfs
newfs_msdos Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
nologin
pdisk
pfctl PF from openbsd 3.5 2004-06-22 15:16:29 +00:00
ping add -h option in synopsis. Fixes PR#25863 from Kouichirou Hiratsuka. 2004-06-08 08:05:30 +00:00
ping6 correct mistake in usage(). Chris Pinnock 2004-06-09 01:59:20 +00:00
pppoectl
raidctl Use Dq instead of quotes; bump date for previous. 2004-05-24 00:08:04 +00:00
rcorder
reboot
resize_ffs Dunno why this code is playing 'hunt the superblock', but stop it 2004-03-21 21:02:01 +00:00
restore
rndctl
route bump buffer size for any_ntoa(), for huge sa_len 2004-05-15 14:13:36 +00:00
routed Remove unimplemented and undescribed -p option from usage and man page 2004-05-17 15:38:20 +00:00
rtsol
savecore Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
scsictl Increase the SCSI command timeout for device start & stop from 10 2004-06-01 02:40:00 +00:00
setkey Bump date for previous. 2004-04-29 12:46:06 +00:00
shutdown
slattach
swapctl Drop trailing whitespace. 2004-06-08 15:53:05 +00:00
sysctl Bump date for last. 2004-04-28 20:28:39 +00:00
ttyflags
tunefs according to newfs(8) and reality, the default minfree value is actually 2004-04-26 14:00:31 +00:00
umount Call -t argument fstypelist, to be in sync with code 2004-04-21 22:31:16 +00:00
veriexecctl
vinum
wdogctl
wsconsctl If scrolling support is not compiled in the kernel, fail gracefully. 2004-06-03 19:18:41 +00:00
Makefile PF from openbsd 3.5 2004-06-22 15:16:29 +00:00
Makefile.inc