freebsd-dev/usr.sbin/binmiscctl
Sean Bruno 4b5e2f8ea0 binmiscctl should use modfind instead of kldfind
kldfind() only matches kernel modules, so if you link imgact_binmisc directly
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
2017-07-28 18:11:53 +00:00
..
binmiscctl.8 Add example for upcoming aarch64/arm64 targets. 2015-02-16 20:55:37 +00:00
binmiscctl.c binmiscctl should use modfind instead of kldfind 2017-07-28 18:11:53 +00:00
Makefile
Makefile.depend META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00