diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-21 19:26:25 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-21 20:49:17 +0100 |
commit | f7b4151a64d8c6851e62255a7139fd00a5fc63a3 (patch) | |
tree | 9e6f78c5771207fff61519f92aafe69e8bd32a91 /source3/lib/util.c | |
parent | 1e22899d268ae5a089f941a204413c07ee64fc78 (diff) | |
download | samba-f7b4151a64d8c6851e62255a7139fd00a5fc63a3.tar.gz samba-f7b4151a64d8c6851e62255a7139fd00a5fc63a3.tar.bz2 samba-f7b4151a64d8c6851e62255a7139fd00a5fc63a3.zip |
s3: Make the implicit reference to Protocol in is_in_path() explicit
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 1ee1bdc35f..933b787697 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; } |