From f7b4151a64d8c6851e62255a7139fd00a5fc63a3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 21 Nov 2009 19:26:25 +0100 Subject: s3: Make the implicit reference to Protocol in is_in_path() explicit --- source3/lib/util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/lib/util.c') diff --git a/source3/lib/util.c b/source3/lib/util.c index 1ee1bdc35fd..933b7876977 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1666,7 +1666,8 @@ const char *readdirname(SMB_STRUCT_DIR *p) of a path matches a (possibly wildcarded) entry in a namelist. ********************************************************************/ -bool is_in_path(const char *name, name_compare_entry *namelist, bool case_sensitive) +bool is_in_path(const char *name, name_compare_entry *namelist, + enum protocol_types proto, bool case_sensitive) { const char *last_component; @@ -1688,7 +1689,7 @@ bool is_in_path(const char *name, name_compare_entry *namelist, bool case_sensit for(; namelist->name != NULL; namelist++) { if(namelist->is_wild) { if (mask_match(last_component, namelist->name, - get_Protocol(), case_sensitive)) { + proto, case_sensitive)) { DEBUG(8,("is_in_path: mask match succeeded\n")); return True; } -- cgit