2009-10-05 13:28:31 +00:00
|
|
|
--- a/config.c
|
|
|
|
+++ b/config.c
|
|
|
|
@@ -160,8 +160,9 @@ static int checkFile(const char *fname)
|
|
|
|
int i;
|
|
|
|
char pattern[PATH_MAX];
|
2006-08-03 13:50:49 +00:00
|
|
|
|
2009-10-05 13:28:31 +00:00
|
|
|
- /* 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 */
|