From: Denys Vlasenko Date: Sun, 9 Jan 2011 19:57:52 +0000 (+0100) Subject: modprobe-small: support compressed modules in insmod X-Git-Tag: 1_19_0~415 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e9d12b57bfb941e754d09a7d5f54c183ca7dbb25;p=oweals%2Fbusybox.git modprobe-small: support compressed modules in insmod Signed-off-by: Denys Vlasenko --- diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c index ec3ddfb8f..f4f17e766 100644 --- a/modutils/modprobe-small.c +++ b/modutils/modprobe-small.c @@ -844,13 +844,15 @@ int modprobe_main(int argc UNUSED_PARAM, char **argv) void *map; 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_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE(options ? options : "") IF_NOT_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE("") - ) != 0) + ) != 0 + ) { bb_error_msg_and_die("can't insert '%s': %s", *argv, moderror(errno)); + } return 0; }