Hi,

   I've built and installed a complete system with the patch
below. Amoung other things, this allows the individual mount_$vfstype
executables to not have to differentiate how they were
invoked. They can then have their XXX sections removed along
with a small amount of code (and this will help our poor
boot floppies :-)

   Does anyone know any reason why this should not be done?

Thanks!
John


Index: mount.c
===================================================================   
RCS file: /mnt/cvs/src/sbin/mount/mount.c,v
retrieving revision 1.50
diff -c -r1.50 mount.c
*** mount.c     14 Oct 2002 19:40:00 -0000      1.50
--- mount.c     26 Jan 2003 20:06:36 -0000
***************
*** 469,474 ****
--- 469,475 ----
                for (edir = edirs; *edir; edir++) {
                        (void)snprintf(execname,
                            sizeof(execname), "%s/mount_%s", *edir, vfstype);
+                       argv[0] = execname;
                        execv(execname, (char * const *)argv);
                }
                if (errno == ENOENT) {


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to