diff options
author | asami <asami@FreeBSD.org> | 1996-03-15 00:14:09 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-03-15 00:14:09 +0000 |
commit | f177e4de95f41c997afa5f3c121cc0b59c03e6b7 (patch) | |
tree | dcb9f4ba5b5b278d2a997f5282042ab5255359e8 /lib/libc | |
parent | 25dec96ec5f0da71ccf7d0d6a2f27a524f8a66f5 (diff) | |
download | FreeBSD-src-f177e4de95f41c997afa5f3c121cc0b59c03e6b7.zip FreeBSD-src-f177e4de95f41c997afa5f3c121cc0b59c03e6b7.tar.gz |
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)
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions