From 12d97b66805f87e535962963e858fc2422ffdbc7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 16 Jan 2011 20:00:24 +0100 Subject: apply post-1.18.1 patches, bump version to 1.18.2 Signed-off-by: Denys Vlasenko --- modutils/modprobe-small.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modutils') 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; } -- cgit v1.1