[git commit master] modprobe-small: hopefully fix bug 591 (incorrect detection of alias with '-')

Denys Vlasenko vda.linux at googlemail.com
Mon Sep 7 00:38:26 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=f9c814b0eedf757f13d4796c254329d84a4ae85c
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 modutils/modprobe-small.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 02d8fbd..bc80723 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -218,6 +218,7 @@ static void parse_module(module_info *info, const char *pathname)
 	bksp(); /* remove last ' ' */
 	appendc('\0');
 	info->aliases = copy_stringbuf();
+	replace(info->aliases, '-', '_');
 
 	/* "dependency1 depandency2" */
 	reset_stringbuf();
-- 
1.6.3.3



More information about the busybox-cvs mailing list