From 3736c00a3b70ce4231b414dd298d4593497642fc Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 27 Mar 2013 16:56:54 +0100 Subject: [PATCH] more small fnmatch() fixes --- src/index/fsindexer.cpp | 1 - src/rcldb/searchdata.cpp | 1 - src/rcldb/synfamily.cpp | 2 -- src/utils/conftree.cpp | 2 +- website/BUGS.html | 6 ++++++ 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/index/fsindexer.cpp b/src/index/fsindexer.cpp index 7052fbdb..8234dd7d 100644 --- a/src/index/fsindexer.cpp +++ b/src/index/fsindexer.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/src/rcldb/searchdata.cpp b/src/rcldb/searchdata.cpp index d041e3fe..fb44f04e 100644 --- a/src/rcldb/searchdata.cpp +++ b/src/rcldb/searchdata.cpp @@ -20,7 +20,6 @@ #include "autoconfig.h" #include -#include #include #include diff --git a/src/rcldb/synfamily.cpp b/src/rcldb/synfamily.cpp index f4e33421..8d0192ff 100644 --- a/src/rcldb/synfamily.cpp +++ b/src/rcldb/synfamily.cpp @@ -18,8 +18,6 @@ #include "autoconfig.h" -#include - #include #include diff --git a/src/utils/conftree.cpp b/src/utils/conftree.cpp index 70db1ed6..13e91aac 100644 --- a/src/utils/conftree.cpp +++ b/src/utils/conftree.cpp @@ -540,7 +540,7 @@ vector ConfSimple::getNames(const string &sk, const char *pattern) const mylist.reserve(ss->second.size()); map::const_iterator it; for (it = ss->second.begin(); it != ss->second.end(); it++) { - if (pattern && FNM_NOMATCH == fnmatch(pattern, it->first.c_str(), 0)) + if (pattern && 0 != fnmatch(pattern, it->first.c_str(), 0)) continue; mylist.push_back(it->first); } diff --git a/website/BUGS.html b/website/BUGS.html index 5a3da18d..88ced3a5 100644 --- a/website/BUGS.html +++ b/website/BUGS.html @@ -74,6 +74,12 @@ video/x-msvideo = exec rclnull +
  • Wildcards expressions sometimes cause false matches + because of issues in handling errors from fnmatch(). This + will only occur in an UTF-8 locale where file name + conversion errors are possible (for old 8bit file + names).
  • +
  • On systems such as Debian Stable which use Evince version 2.x (not 3.x) as PDF viewer, the default "Open" command for PDF files will not work. You need to edit the command: