1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/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 Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
badsect Submitted by: Philippe Charnier <charnier@lirmm.fr>, added to by bde 1995-04-02 16:52:14 +00:00
bsdlabel Try to preserve the fdisk table in the primary bootstrap, should it 1996-02-03 21:14:09 +00:00
ccdconfig Add CCDF_MIRROR and CCDF_PARITY to list of flags. 1996-01-31 11:04:52 +00:00
clri
comcontrol Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
cxconfig This upgrades the driver for Cronyx-Sigma multiplexor boards 1995-10-04 22:24:16 +00:00
disklabel Try to preserve the fdisk table in the primary bootstrap, should it 1996-02-03 21:14:09 +00:00
dmesg Add setlocale LC_CTYPE 1995-10-23 23:36:55 +00:00
dset Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
dump Put the superfluous "DUMP:" back in the statistics line, to make 1995-12-23 11:53:56 +00:00
dumpfs
dumplfs Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
dumpon Fixed some minor formatting problems to silence manck some more. 1996-02-12 01:20:38 +00:00
fdisk Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
fsck Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
fsck_ffs Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
fsck_ifs Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
fsdb Adjust relative paths in Makefile to ../sbin/fsck and ../../sys/ufs/ffs 1995-11-24 23:12:00 +00:00
i386 Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
ifconfig XNS sort-of-support is no more. 1996-02-13 17:30:37 +00:00
init The DES-based init(8) belongs to the "des" distribution. 1996-02-13 09:12:10 +00:00
ipfw Update to match kernel code. 1996-02-24 13:39:46 +00:00
ldconfig Bring in some of Paul K's fixes for ldconfig from NetBSD-current. 1996-02-26 02:22:33 +00:00
md5 Fix to match new API. Fixes memory leak, faster. 1995-07-12 09:14:46 +00:00
mknod Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
modload Add a few more heuristics to modload: 1995-10-28 17:06:05 +00:00
modunload fix a reference in "SEE ALSO" (modunload(8) mistakenly references 1995-10-26 21:44:11 +00:00
mount Change the messages slightly when there is no "mount_type" executable 1996-03-15 00:14:09 +00:00
mount_cd9660 Include the special device in the error output so that it makes sense. 1995-02-15 14:29:26 +00:00
mount_devfs Obtained from: copied fro mount_kernfs 1995-04-21 01:17:50 +00:00
mount_ext2fs Hacked up a small man page for mount_ext2fs. The existing man page was 1996-01-31 17:28:23 +00:00
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 Fix another path that was broken by moving things to sbin/i386. 1994-12-04 08:01:24 +00:00
mount_msdosfs Fix another path that was broken by moving things to sbin/i386. 1994-12-04 08:01:24 +00:00
mount_nfs #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
mount_null Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
mount_nullfs Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
mount_portal Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
mount_portalfs Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
mount_procfs
mount_umap Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
mount_umapfs Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
mount_union Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
mount_unionfs Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
mountd Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
newfs man page link tmpfs.8 -> mfs.8 for former SunOS users 1996-02-02 06:31:57 +00:00
newlfs Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
nfsd #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
nfsiod Catch the case where the children can die too soon causing wait3() 1995-10-01 03:23:13 +00:00
nologin Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
ping Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
quotacheck Silence some cc -Wall warnings in quotacheck. 1996-02-27 08:04:48 +00:00
rdisc Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
reboot Removed the boot_*(8) man pages for machines we don't support: 1996-02-12 04:29:10 +00:00
restore Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
route Fix route to check if inet_addr and inet_network return INADDR_NONE, 1996-02-17 21:13:32 +00:00
rpc.lockd Import Jan 15 version of Andrew Gordon <andrew.gordon@net-tel.co.uk>'s 1996-02-17 15:11:29 +00:00
rpc.statd Import Jan 15 version of Andrew Gordon <andrew.gordon@net-tel.co.uk>'s 1996-02-17 15:14:59 +00:00
savecore Add #include <vm/pmap.h> in order to make savecore compile again after the 1995-12-13 11:36:20 +00:00
scsi scsi(8) used to fall off the end of main(), returning an arbitrary 1995-07-30 12:58:47 +00:00
scsiformat Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
shutdown Delete bogus referneces to timezone code internal header file `tzfile.h', 1995-08-07 19:17:46 +00:00
slattach Properly distinguish 3 different cases: 1996-03-12 23:14:45 +00:00
startslip Prepare to eliminate multiply uucplock.c copies 1996-03-04 10:35:45 +00:00
swapon Take out special error message for EINVAL...we really do want it to be 1995-05-14 02:18:18 +00:00
sysctl Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
tunefs Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
umount Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
Makefile Added mount_ext2fs to SUBDIR list. 1996-02-01 19:04:17 +00:00
Makefile.inc Define CRYPTOBJDIR if secure is being built 1995-10-01 15:04:42 +00:00