mirror of
https://github.com/AuxXxilium/kmod.git
synced 2025-01-19 18:36:55 +07:00
libkmod-module: probe: Fix ignore-loaded flag not being applied
This commit is contained in:
parent
e479598b7d
commit
269de2e0bf
3
TODO
3
TODO
@ -38,6 +38,9 @@ Features:
|
||||
|
||||
* Stop using system() inside the library and use fork + exec instead
|
||||
|
||||
* Add tests for --show-depends: we need to first trap calls to
|
||||
kmod_module_get_path(), because it's printed to stdout/stderr.
|
||||
|
||||
Known Bugs:
|
||||
===========
|
||||
|
||||
|
@ -1132,7 +1132,8 @@ KMOD_EXPORT int kmod_module_probe_insert_module(struct kmod_module *mod,
|
||||
if (mod == NULL)
|
||||
return -ENOENT;
|
||||
|
||||
if (module_is_inkernel(mod)) {
|
||||
if (!(flags & KMOD_PROBE_IGNORE_LOADED)
|
||||
&& module_is_inkernel(mod)) {
|
||||
if (flags & KMOD_PROBE_FAIL_ON_LOADED)
|
||||
return -EEXIST;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user