From owner-freebsd-bugs Sun Mar 8 10:40:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA23498 for freebsd-bugs-outgoing; Sun, 8 Mar 1998 10:40:04 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA23474; Sun, 8 Mar 1998 10:40:02 -0800 (PST) (envelope-from gnats) 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 ; 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 X-Send-Pr-Version: 3.2 Subject: bin/5948: sbin/mount with default define is broken Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5948 >Category: bin >Synopsis: sbin/mount/mount_ufs.c needs to be patched; has errors >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 8 10:40:01 PST 1998 >Last-Modified: >Originator: Brian Feldman >Organization: none >Release: FreeBSD 3.0-CURRENT i386 >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 >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message