packages/utils/logrotate/patches/003-ignore_hidden.patch
nico fd7667f619 [packages] logrotate: update to v3.7.8
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17879 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-05 13:28:31 +00:00

15 lines
501 B
Diff

--- a/config.c
+++ b/config.c
@@ -160,8 +160,9 @@ static int checkFile(const char *fname)
int i;
char pattern[PATH_MAX];
- /* 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 */