Subject: bin/1274: mount(8) returns confusing error message
To: None <gnats-bugs@NetBSD.ORG>
From: None <tage@cs.uit.no>
List: netbsd-bugs
Date: 07/25/1995 13:09:41
>Number: 1274
>Category: bin
>Synopsis: mount(8) returns confusing error message
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 25 08:35:02 1995
>Last-Modified:
>Originator: Tage Stabell-Kulo
>Organization:
" University of Tromso, Norway"
>Release: 1.0
>Environment:
System: NetBSD dslab1.cs.uit.no 1.0 NetBSD 1.0 (INSTALL) #0: Fri Nov 11 05:06:51 PST 1994 thorpej@helix:/mastersrc/NetBSD/usr/src/sys/arch/hp300/compile/INSTALL hp300
>Description:
When mount(8) is invoked with a file-system type, different than
ufs, that doesn't hava a mount_xxx program, the error message
contains the last of the entries in the search path. This is
confusing.
>How-To-Repeat:
mount -t xxx /dev/sd2a /
>Fix:
Line 359 in src/sbin/mount/mount.c:
warn("exec %s for %s", execname, name);
should be changed into
warn("exec of mount_%s for %s", vfstype, name)
alternatively with a more elaborate solution listing all entries in the
array edirs (which now contains only _PATH_SBIN and _PATH_USRSBIN).
>Audit-Trail:
>Unformatted: