http://bugs.gentoo.org/245271 --- a/modprobe.c +++ b/modprobe.c @@ -1289,6 +1289,12 @@ DIR *dir; int ret = 0; + /* Ignore hidden dirs. This allows people to maintain things with + * SCMs like .svn/ or .git/ or ... + */ + if ((strncmp(filename, "/etc/modprobe.d/.", 17) == 0) || (strncmp(filename, "/etc/modules.d/.", 16) == 0)) + return 1; + /* Reiser4 has file/directory duality: treat it as both. */ dir = opendir(filename); if (dir) {