utils/psmisc: update psmisc to 22.12
[openwrt/svn-archive/archive.git] / utils / logrotate / patches / 003-ignore_hidden.patch
index 390de7537c67352d267c416cc199c260ea5cd5f1..7ca5392a6b9eb67b86604ccae6a62224eaba6638 100644 (file)
@@ -1,14 +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;
+--- a/config.c
++++ b/config.c
+@@ -160,8 +160,9 @@ static int checkFile(const char *fname)
+       int i;
+       char pattern[PATH_MAX];
  
-+    /* 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++) {
+-      /* 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 */