mirror of
https://github.com/sheumann/hush.git
synced 2025-02-05 05:33:31 +00:00
modprobe-small: support compressed modules in insmod
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
642e71a789
commit
e9d12b57bf
@ -844,13 +844,15 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
void *map;
|
void *map;
|
||||||
|
|
||||||
len = MAXINT(ssize_t);
|
len = MAXINT(ssize_t);
|
||||||
map = xmalloc_xopen_read_close(*argv, &len);
|
map = xmalloc_open_zipped_read_close(*argv, &len);
|
||||||
if (init_module(map, len,
|
if (init_module(map, len,
|
||||||
IF_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE(options ? options : "")
|
IF_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE(options ? options : "")
|
||||||
IF_NOT_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE("")
|
IF_NOT_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE("")
|
||||||
) != 0)
|
) != 0
|
||||||
|
) {
|
||||||
bb_error_msg_and_die("can't insert '%s': %s",
|
bb_error_msg_and_die("can't insert '%s': %s",
|
||||||
*argv, moderror(errno));
|
*argv, moderror(errno));
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user