freebsd_amp_hwpstate/sbin
Satoshi Asami b6cf6bb275 Change the messages slightly when there is no "mount_type" executable
found when the user specifies "mount -t type".  Instead of printing
out one message for each path element (/sbin, /usr/sbin), it prints
out:

mount: exec mount_type not found in /sbin, /usr/sbin: No such file or directory

The code is quite long for such a stupid little piece of aesthesism
but it is very straghtforward so I guess it's ok.  Besides, I don't
want to do a "char foo[100];" and have malloc break down when someone
decides to add a few more paths to a variable that's far apart from
this code. :)

By the way, there is no malloc() off-by-one error for the '\0' at the
end of the string although I don't explicitly add 1 to the length.
The code allocates strlen(path element)+2 bytes for each path element,
and doesn't use the last two bytes (for the delimiting ", ").

Reviewed by:	the list (I hope)
1996-03-15 00:14:09 +00:00
..
adjkerntz
badsect
bsdlabel
ccdconfig
clri
comcontrol
cxconfig
disklabel
dmesg
dset
dump
dumpfs
dumplfs
dumpon
fdisk
fsck
fsck_ffs
fsck_ifs
fsdb
i386
ifconfig
init
ipfw
ldconfig
md5
mknod
modload
modunload
mount Change the messages slightly when there is no "mount_type" executable 1996-03-15 00:14:09 +00:00
mount_cd9660
mount_devfs
mount_ext2fs
mount_fdesc
mount_ifs Change the messages slightly when there is no "mount_type" executable 1996-03-15 00:14:09 +00:00
mount_kernfs
mount_lfs
mount_msdos
mount_msdosfs
mount_nfs
mount_null
mount_nullfs
mount_portal
mount_portalfs
mount_procfs
mount_umap
mount_umapfs
mount_union
mount_unionfs
mountd
newfs
newlfs
nfsd
nfsiod
nologin
ping
quotacheck
rdisc
reboot
restore
route
rpc.lockd
rpc.statd
savecore
scsi
scsiformat
shutdown
slattach Properly distinguish 3 different cases: 1996-03-12 23:14:45 +00:00
startslip
swapon
sysctl
tunefs
umount
Makefile
Makefile.inc