com_ls: Don't use FNM_PATHNAME.
authorAndre Noll <maan@systemlinux.org>
Sat, 29 Sep 2007 13:30:06 +0000 (15:30 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 29 Sep 2007 13:30:06 +0000 (15:30 +0200)
It's just annoying.

aft.c

diff --git a/aft.c b/aft.c
index c5effc6..9e4fec2 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -1017,7 +1017,7 @@ static int prepare_ls_row(struct osl_row *row, void *ls_opts)
        }
        if (options->num_patterns) {
                for (i = 0; i < options->num_patterns; i++) {
        }
        if (options->num_patterns) {
                for (i = 0; i < options->num_patterns; i++) {
-                       ret = fnmatch(options->patterns[i], path, FNM_PATHNAME);
+                       ret = fnmatch(options->patterns[i], path, 0);
                        if (!ret)
                                break;
                        if (ret == FNM_NOMATCH)
                        if (!ret)
                                break;
                        if (ret == FNM_NOMATCH)