Bug 5948 - sbin/mount/mount_ufs.c needs to be patched; has errors
Summary: sbin/mount/mount_ufs.c needs to be patched; has errors
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 3.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Price
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-03-08 18:40 UTC by green
Modified: 1998-03-08 19:12 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description green 1998-03-08 18:40:01 UTC
src/sbin/mount/mount_ufs.c has a few errors which need to be patched

Fix: this patch needs to be applied:


@@ -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--78z1hxgLe1S3Lrjhbni8C6byiGswVIW7P9ZsL6nTto7ZtKYS
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
How-To-Repeat: 
cd /usr/src/sbin/mount/ && make clean all
Comment 1 Steve Price freebsd_committer 1998-03-08 19:11:09 UTC
State Changed
From-To: open->closed

Patch applied.  Thanks!