FreeBSD Bugzilla – Attachment 181720 Details for
Bug 218593
[patch] binmiscctl should use modfind instead of kldfind
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
use modfind
binmiscctl.diff (text/plain), 584 bytes, created by
Dan Nelson
on 2017-04-12 15:35:04 UTC
(
hide
)
Description:
use modfind
Filename:
MIME Type:
Creator:
Dan Nelson
Created:
2017-04-12 15:35:04 UTC
Size:
584 bytes
patch
obsolete
>Index: binmiscctl.c >=================================================================== >--- binmiscctl.c (revision 316732) >+++ binmiscctl.c (working copy) >@@ -40,6 +40,7 @@ > #include <sys/types.h> > #include <sys/imgact_binmisc.h> > #include <sys/linker.h> >+#include <sys/module.h> > #include <sys/sysctl.h> > > enum cmd { >@@ -401,7 +402,7 @@ > size_t xbe_out_sz = 0, *xbe_out_szp = NULL; > uint32_t i; > >- if (kldfind(KMOD_NAME) == -1) { >+ if (modfind(KMOD_NAME) == -1) { > if (kldload(KMOD_NAME) == -1) > fatal("Can't load %s kernel module: %s", > KMOD_NAME, strerror(errno));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 218593
: 181720