[PATCH] module-init-tools: don't do '-' substitutions in depmod

From: Bill Nottingham
Date: Thu Sep 08 2005 - 14:59:09 EST


The attached patch removes the '-' for '_' substitution from
depmod - this makes the names printed for modules in module.alias
match the actual names of the module files.

Bill
diff -ru depmod.c.old depmod.c
--- depmod.c 2005-04-30 08:38:46.000000000 -0400
+++ depmod.c 2005-09-08 15:52:26.000000000 -0400
@@ -607,13 +607,8 @@
else
afterslash++;

- /* Convert to underscores, stop at first . */
- for (i = 0; afterslash[i] && afterslash[i] != '.'; i++) {
- if (afterslash[i] == '-')
- modname[i] = '_';
- else
+ for (i = 0; afterslash[i] && afterslash[i] != '.'; i++)
modname[i] = afterslash[i];
- }
modname[i] = '\0';
}