Contents of /trunk/logrotate/patches/logrotate-3.7.1-ignore-hidden.patch
Parent Directory | Revision Log
Revision 153 -
(show annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 517 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 517 byte(s)
-import
1 | --- logrotate-3.7/config.c.orig 2005-04-26 22:57:53.000000000 -0400 |
2 | +++ logrotate-3.7/config.c 2005-04-26 22:59:36.000000000 -0400 |
3 | @@ -142,6 +142,11 @@ |
4 | (!fname[1] || (fname[1] == '.' && !fname[2]))) |
5 | return 0; |
6 | |
7 | + /* Don't include 'hidden' files either; this breaks Gentoo |
8 | + portage config file management http://bugs.gentoo.org/87683 */ |
9 | + if (fname[0] == '.') |
10 | + return 0; |
11 | + |
12 | /* Check if fname is ending in a taboo-extension; if so, return |
13 | false */ |
14 | for (i = 0; i < tabooCount; i++) { |