diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/logrotate/files/logrotate-3.12.2-ignore-hidden.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/logrotate/files/logrotate-3.12.2-ignore-hidden.patch')
-rw-r--r-- | app-admin/logrotate/files/logrotate-3.12.2-ignore-hidden.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app-admin/logrotate/files/logrotate-3.12.2-ignore-hidden.patch b/app-admin/logrotate/files/logrotate-3.12.2-ignore-hidden.patch new file mode 100644 index 000000000000..0bbb91dcb4fc --- /dev/null +++ b/app-admin/logrotate/files/logrotate-3.12.2-ignore-hidden.patch @@ -0,0 +1,14 @@ +diff -Nuar a/config.c b/config.c +--- a/config.c 2017-04-18 14:57:02.000000000 +0200 ++++ b/config.c 2017-04-22 23:46:08.201991730 +0200 +@@ -389,7 +389,9 @@ + int i; + + /* 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 */ |