From green@feldman.dyn.ml.org  Sun Mar  8 10:37:17 1998
Received: from feldman.dyn.ml.org (green@1Cust117.max1.washington.dc.ms.uu.net [153.34.49.117])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA22962
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 8 Mar 1998 10:37:12 -0800 (PST)
          (envelope-from green@feldman.dyn.ml.org)
Received: (from green@localhost)
	by feldman.dyn.ml.org (8.8.8/8.8.8) id NAA10406;
	Sun, 8 Mar 1998 13:37:04 -0500 (EST)
	(envelope-from green)
Message-Id: <199803081837.NAA10406@feldman.dyn.ml.org>
Date: Sun, 8 Mar 1998 13:37:04 -0500 (EST)
From: green@feldman.dyn.ml.org
Reply-To: green@feldman.dyn.ml.org
To: FreeBSD-gnats-submit@freebsd.org
Cc: jkh@time.cdrom.com
Subject: sbin/mount with default define is broken
X-Send-Pr-Version: 3.2

>Number:         5948
>Category:       bin
>Synopsis:       sbin/mount/mount_ufs.c needs to be patched; has errors
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    steve
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar  8 10:40:01 PST 1998
>Closed-Date:    Sun Mar 8 11:11:09 PST 1998
>Last-Modified:  Sun Mar  8 11:12:56 PST 1998
>Originator:     Brian Feldman
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
none
>Environment:

Nothing special, recent CVSup of -CURRENT, as of last night.

>Description:

src/sbin/mount/mount_ufs.c has a few errors which need to be patched

>How-To-Repeat:

cd /usr/src/sbin/mount/ && make clean all

>Fix:
	
this patch needs to be applied:
--- mount_ufs.c_old     Sun Mar  8 13:25:13 1998
+++ mount_ufs.c Sun Mar  8 13:27:00 1998
@@ -84,7 +84,7 @@
        struct vfsconf vfc;
        int error = 0;
 #ifdef ROOTSLICE_HUNT
-       int slice, part, result;
+       int slice, part, result, unit;
        char devbuf[MAXPATHLEN], devpfx[MAXPATHLEN];
 #endif

@@ -154,7 +154,7 @@
                        fs_name, devbuf);
        /* Try the mount as originally requested */
        if ((result  < 0) &&
-           (mount(vfc.vfc_name, fs_name, mntflags, &args < 0)) {
+           (mount(vfc.vfc_name, fs_name, mntflags, &args) < 0)) {
 #else
        if (mount(vfc.vfc_name, fs_name, mntflags, &args) < 0) {
 #endif
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Mar 8 11:11:09 PST 1998 
State-Changed-Why:  
Patch applied.  Thanks! 
>Unformatted:
