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 02d8fbd40e49bb7ce8d7afbffe71c7301c1b2629..bc80723fad87df16dcfa4a769ec45dee18c090b2 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();