From owner-freebsd-bugs Mon Jan 29 04:26:02 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA26344 for bugs-outgoing; Mon, 29 Jan 1996 04:26:02 -0800 (PST) Received: from lirmm.lirmm.fr (lirmm.lirmm.fr [193.49.104.10]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id EAA26334 for ; Mon, 29 Jan 1996 04:25:43 -0800 (PST) Received: from lirmm.fr (baobab.lirmm.fr [193.49.106.14]) by lirmm.lirmm.fr (8.7.1/8.6.4) with ESMTP id NAA09742 for ; Mon, 29 Jan 1996 13:25:39 +0100 (MET) Message-Id: <199601291225.NAA09742@lirmm.lirmm.fr> To: bugs@freebsd.org Subject: mount Date: Mon, 29 Jan 1996 13:25:33 +0100 From: "Philippe Charnier" Sender: owner-bugs@freebsd.org Precedence: bulk Hi, If you run mount with an incorrect vfstype you will get the message: mount: exec /usr/sbin/mount_incorrect for /mnt: No such file or directory The mount_xxx commands are located in /sbin, so it is ambiguous. With the following patch applied, You will get: mount: mount_incorrect: Command not found. Index: mount.c =================================================================== RCS file: /home2h/FreeBSD.cvsroot/src/sbin/mount/mount.c,v retrieving revision 1.8 diff -c -r1.8 mount.c *** mount.c 1995/08/26 05:39:53 1.8 --- mount.c 1996/01/28 10:49:44 *************** *** 337,343 **** } while (*++edir != NULL); if (errno == ENOENT) ! warn("exec %s for %s", execname, name); exit(1); /* NOTREACHED */ default: /* Parent. */ --- 337,343 ---- } while (*++edir != NULL); if (errno == ENOENT) ! warnx("mount_%s: Command not found.", vfstype); exit(1); /* NOTREACHED */ default: /* Parent. */ -------- -------- Philippe Charnier charnier@lirmm.fr LIRMM, 161 rue Ada, 34392 Montpellier cedex 5 -- France ------------------------------------------------------------------------