Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 1996 13:25:33 +0100
From:      "Philippe Charnier" <charnier@lirmm.fr>
To:        bugs@freebsd.org
Subject:   mount
Message-ID:  <199601291225.NAA09742@lirmm.lirmm.fr>

next in thread | raw e-mail | index | archive | help


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
------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601291225.NAA09742>