projects
/
project
/
ubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logread: ensure that the len < sizeof(struct blob_attr) check runs before trying...
[project/ubox.git]
/
kmodloader.c
diff --git
a/kmodloader.c
b/kmodloader.c
index
b09a323
..
387678a
100644
(file)
--- a/
kmodloader.c
+++ b/
kmodloader.c
@@
-593,6
+593,8
@@
static int main_insmod(int argc, char **argv)
cur += sprintf(cur, "%s", argv[i]);
}
cur += sprintf(cur, "%s", argv[i]);
}
+ init_module_folders();
+
if (get_module_path(argv[1])) {
name = argv[1];
} else if (!get_module_path(name)) {
if (get_module_path(argv[1])) {
name = argv[1];
} else if (!get_module_path(name)) {
@@
-749,7
+751,7
@@
static int main_loader(int argc, char **argv)
if (scan_module_folders())
return -1;
if (scan_module_folders())
return -1;
- syslog(
0
, "kmodloader: loading kernel modules from %s\n", path);
+ syslog(
LOG_INFO
, "kmodloader: loading kernel modules from %s\n", path);
if (glob(path, gl_flags, NULL, &gl) < 0)
goto out;
if (glob(path, gl_flags, NULL, &gl) < 0)
goto out;