projects
/
project
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc07b0b
)
fix hyphen substitution in path
author
John Crispin
<blogic@openwrt.org>
Thu, 19 Sep 2013 13:15:09 +0000
(15:15 +0200)
committer
John Crispin
<blogic@openwrt.org>
Thu, 19 Sep 2013 13:15:09 +0000
(15:15 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
kmodloader.c
patch
|
blob
|
history
diff --git
a/kmodloader.c
b/kmodloader.c
index 9fd5ae4ad9eb0fbeaf4b92df3c5bd32ae66b36b3..ab8a00bc9f089498042a01bde06856c335009568 100644
(file)
--- a/
kmodloader.c
+++ b/
kmodloader.c
@@
-110,13
+110,13
@@
static char* get_module_path(char *name)
uname(&ver);
snprintf(path, 256, "%s" DEF_MOD_PATH "%s.ko", prefix, ver.release, name);
- replace_dash(
path
);
+ replace_dash(
basename(path)
);
if (!stat(path, &s))
return path;
snprintf(path, 256, "%s" DEF_MOD_PATH "%s.ko", prefix, ver.release, name);
- replace_underscore(
path
);
+ replace_underscore(
basename(path)
);
if (!stat(path, &s))
return path;