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.7.7-ignore-hidd...

16 lines
734 B

diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN logrotate-3.7.7.orig/config.c logrotate-3.7.7/config.c
--- logrotate-3.7.7.orig/config.c 2008-05-09 03:28:59.000000000 -0400
+++ logrotate-3.7.7/config.c 2008-12-23 11:11:18.000000000 -0500
@@ -164,6 +164,11 @@ static int checkFile(const char *fname)
if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2])))
return 0;
+ /* 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 */
for (i = 0; i < tabooCount; i++) {
snprintf(pattern, sizeof(pattern), "*%s", tabooExts[i]);