projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
642e71a
)
modprobe-small: support compressed modules in insmod
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 9 Jan 2011 19:57:52 +0000
(20:57 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 9 Jan 2011 19:57:52 +0000
(20:57 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
modutils/modprobe-small.c
patch
|
blob
|
history
diff --git
a/modutils/modprobe-small.c
b/modutils/modprobe-small.c
index ec3ddfb8f4369f683c9ba4db5020a78a8b28c0a1..f4f17e766385d256a5a6ed0995613ffb997eb8be 100644
(file)
--- 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;
}