summaryrefslogtreecommitdiff
blob: bdd0fbd9f5536f9eec62edc49b42d2ed2ecb2d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -Nuar a/config.c b/config.c
--- a/config.c	2014-10-16 13:12:35.000000000 +0200
+++ b/config.c	2014-11-04 19:19:55.200055496 +0100
@@ -255,7 +255,9 @@
 	char *pattern;
 
 	/* Check if fname is '.' or '..'; if so, return false */
-	if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2])))
+	/* Don't include 'hidden' files either; this breaks Gentoo 
+	   portage config file management http://bugs.gentoo.org/87683 */
+	if (fname[0] == '.')
 		return 0;
 
 	/* Check if fname is ending in a taboo-extension; if so, return false */