From 90c3df48c91c1030d07107263bc5e18f65d1b9fe Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Thu, 25 Nov 2010 22:23:24 -0800 Subject: [PATCH] fnmatch() is a unix function, stupid! --- moo/mooutils/mooutils-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moo/mooutils/mooutils-file.c b/moo/mooutils/mooutils-file.c index 69501258..cf03bf69 100644 --- a/moo/mooutils/mooutils-file.c +++ b/moo/mooutils/mooutils-file.c @@ -24,5 +24,5 @@ moo_file_fnmatch (GFile *file, filename = g_file_get_path (file); moo_return_val_if_fail (filename != NULL, FALSE); - return fnmatch (glob, filename, 0); + return fnmatch (glob, filename, 0) == 0; }