utils/psmisc: update psmisc to 22.12
[openwrt/svn-archive/archive.git] / utils / logrotate / patches / 003-ignore_hidden.patch
1 --- a/config.c
2 +++ b/config.c
3 @@ -160,8 +160,9 @@ static int checkFile(const char *fname)
4 int i;
5 char pattern[PATH_MAX];
6
7 - /* Check if fname is '.' or '..'; if so, return false */
8 - if (fname[0] == '.' && (!fname[1] || (fname[1] == '.' && !fname[2])))
9 + /* Don't include 'hidden' files either; this breaks Gentoo
10 + portage config file management http://bugs.gentoo.org/87683 */
11 + if (fname[0] == '.')
12 return 0;
13
14 /* Check if fname is ending in a taboo-extension; if so, return false */