diff options
Diffstat (limited to 'app-admin/logrotate/files/logrotate-3.7.7-ignore-hidden.patch')
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.7.7-ignore-hidden.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app-admin/logrotate/files/logrotate-3.7.7-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.7.7-ignore-hidden.patch new file mode 100644 index 000000000000..28581f142587 --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.7.7-ignore-hidden.patch @@ -0,0 +1,15 @@ +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]); |