[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-bugs
Subject:    mount
From:       "Philippe Charnier" <charnier () lirmm ! fr>
Date:       1996-01-29 12:25:33
[Download RAW message or body]



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic