Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2017 15:35:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 218593] [patch] binmiscctl should use modfind instead of kldfind
Message-ID:  <bug-218593-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218593

            Bug ID: 218593
           Summary: [patch] binmiscctl should use modfind instead of
                    kldfind
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: dnelson_1901@yahoo.com
          Keywords: patch

Created attachment 181720
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D181720&action=
=3Dedit
use modfind

kldfind() only matches kernel modules, so if you link imgact_binmisc direct=
ly
into the kernel, binmiscctl can't find it, tries to load it, and errors out
with:

  Can't load imgact_binmisc kernel module: File exists

A quick search of other base commands shows that the correct procedure is to
call modfind(), and then try kldload() if that fails.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218593-8>