Signed-off-by: Noah Williamsson <[email protected]>
---
 libglusterfs/src/xlator.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c
index 3930880..2e48f75 100644
--- a/libglusterfs/src/xlator.c
+++ b/libglusterfs/src/xlator.c
@@ -375,8 +375,13 @@ _volume_option_value_validate (xlator_t *xl,
 
                for (i = 0; (i < ZR_OPTION_MAX_ARRAY_SIZE) &&
                             opt->value[i]; i++) {
+#ifdef GF_DARWIN_HOST_OS
+                        if (fnmatch (opt->value[i], pair->value->data,
+                                     0) == 0) {
+#else
                         if (fnmatch (opt->value[i], pair->value->data,
                                      FNM_EXTMATCH) == 0) {
+#endif
                                ret = 0;
                                break;
                        }
-- 
1.6.6.1


_______________________________________________
Gluster-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/gluster-devel

Reply via email to