summaryrefslogtreecommitdiff
blob: 9d215bc12e9fb1c4d6249d0bc1f2750d3d4d6f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 (filename[0] == '.')
+		return 1;
+
 	/* Reiser4 has file/directory duality: treat it as both. */
 	dir = opendir(filename);
 	if (dir) {