freebsd-dev/sbin/mount
asami 18ed37cb9f 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
..
getmntopts.3 Add support for filesystem-specific `-o' options, and re-implement the 1994-11-01 23:51:53 +00:00
getmntopts.c Add support for filesystem-specific `-o' options, and re-implement the 1994-11-01 23:51:53 +00:00
Makefile Convert to our man installation style. Also fixed long-standing bug 1994-08-05 02:42:42 +00:00
mntopts.h The changes for adding the "noauto" option were mostly wrong. MNT_NOAUTO 1995-08-26 05:39:53 +00:00
mount_ufs.c Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
mount.8 Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
mount.c Change the messages slightly when there is no "mount_type" executable 1996-03-15 00:14:09 +00:00
pathnames.h BSD 4.4 Lite sbin Sources 1994-05-26 06:35:07 +00:00