Port logrotate to -ng

git-svn-id: svn://svn.openwrt.org/openwrt/packages@4420 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2006-08-03 13:50:49 +00:00
parent 330aae61d5
commit c0c7964659
8 changed files with 630 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- logrotate-3.7/config.c.orig 2005-04-26 22:57:53.000000000 -0400
+++ logrotate-3.7/config.c 2005-04-26 22:59:36.000000000 -0400
@@ -142,6 +142,11 @@
(!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++) {