Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2017 18:12:50 +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-SkRPXZbRMN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-218593-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-218593-8@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #1 from commit-hook@freebsd.org ---
A commit references this bug:

Author: sbruno
Date: Fri Jul 28 18:11:54 UTC 2017
New revision: 321658
URL: https://svnweb.freebsd.org/changeset/base/321658

Log:
  binmiscctl should use modfind instead of kldfind

  kldfind() only matches kernel modules, so if you link imgact_binmisc dire=
ctly
  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.

  PR:           218593
  Submitted by: Dan Nelson <dnelson_1901@yahoo.com>
  MFC after:    1 week

Changes:
  head/usr.sbin/binmiscctl/binmiscctl.c

--=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-SkRPXZbRMN>