modprobe-small: hopefully fix bug 591 (incorrect detection of alias with '-')
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 7 Sep 2009 00:37:19 +0000 (02:37 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 7 Sep 2009 00:37:19 +0000 (02:37 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
modutils/modprobe-small.c

index 02d8fbd..bc80723 100644 (file)
@@ -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();