You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/logrotate/files/logrotate-3.8.3-ignore-hidd...

15 lines
547 B

diff -Nur a/config.c b/config.c
--- a/config.c 2012-10-04 09:59:14.000000000 +0200
+++ b/config.c 2012-11-09 20:57:07.139872584 +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 */