FreeBSD src
Go to file
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
bin Fix 'stutter' in manpage. 1996-03-12 05:30:39 +00:00
eBones Big clean-up job. Remove ancient and never-to-be used stuff. 1996-03-11 16:17:58 +00:00
etc Renamed the relevant PC-Card support files to reflect the newest release. 1996-03-14 18:24:07 +00:00
games add missing include files 1996-03-13 23:38:21 +00:00
gnu delete /usr/local/bin from PATH 1996-03-12 23:09:04 +00:00
include Don't reference ndbm(3) manpage. Everything is covered by db(3). 1996-03-03 09:04:40 +00:00
lib From Lite2: proc and file LIST changes 1996-03-11 05:34:46 +00:00
libexec Update the uucpd makefile to install the man page. 1996-02-18 21:38:13 +00:00
lkm linux_interp now moved into sys/i386/linux/linux_sysvec.c, but still 1996-03-10 22:43:37 +00:00
release Keep explicit newfs parameters, just set them differently. 1996-03-02 20:02:13 +00:00
sbin Change the messages slightly when there is no "mount_type" executable 1996-03-15 00:14:09 +00:00
secure Big clean-up job. Remove ancient and never-to-be used stuff. 1996-03-11 16:17:58 +00:00
share strip -d kernel 1996-03-14 02:52:06 +00:00
sys Provide a better handling of partially corrupted directory entries. 1996-03-14 21:44:32 +00:00
tools Don't look in libkern, it went away. 1995-12-29 01:51:23 +00:00
usr.bin remove /usr/ucb from path 1996-03-12 21:37:05 +00:00
usr.sbin Fold in 8.7.5 change onto mainline (all one line). 1996-03-13 16:56:55 +00:00
COPYRIGHT This is the official 4.4 Lite copyright. 1994-09-11 07:53:28 +00:00
Makefile Add a hint that a make world is done so people don't think that the last 1996-03-11 14:59:10 +00:00