summaryrefslogtreecommitdiff
path: root/modutils/modprobe-small.c
diff options
context:
space:
mode:
authorDenys Vlasenko2011-01-09 20:57:52 +0100
committerDenys Vlasenko2011-01-09 20:57:52 +0100
commite9d12b57bfb941e754d09a7d5f54c183ca7dbb25 (patch)
tree1b6240266c894f17dc0b34ab61ea75d05e47d223 /modutils/modprobe-small.c
parent642e71a789156a96bcb18e6c5a0f52416c49d3b5 (diff)
downloadbusybox-e9d12b57bfb941e754d09a7d5f54c183ca7dbb25.zip
busybox-e9d12b57bfb941e754d09a7d5f54c183ca7dbb25.tar.gz
modprobe-small: support compressed modules in insmod
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/modprobe-small.c')
-rw-r--r--modutils/modprobe-small.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index ec3ddfb..f4f17e7 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;
}