summaryrefslogtreecommitdiff
blob: 6745126259be38b80a84cc5280ce79f85935139f (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	2018-03-09 17:47:08.000000000 +0100
+++ b/config.c	2018-03-09 19:47:42.274696766 +0100
@@ -440,7 +440,9 @@
 	int i;
 
 	/* 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 */