diff options
author | John Crispin <blogic@openwrt.org> | 2013-09-19 15:15:09 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-09-19 15:15:09 +0200 |
commit | 102b1ad4c5c4db2c5a62f8581ab098885d4295c8 (patch) | |
tree | 4751816059483e8c3f66cf7b3f7f2bcbc0b8f088 /kmodloader.c | |
parent | cc07b0b7ac66d0e4a05470dd69a28305405cd7dd (diff) | |
download | ubox-102b1ad4c5c4db2c5a62f8581ab098885d4295c8.tar.gz |
fix hyphen substitution in path
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'kmodloader.c')
-rw-r--r-- | kmodloader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kmodloader.c b/kmodloader.c index 9fd5ae4..ab8a00b 100644 --- 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; |