Revert "s3: Make the implicit reference to Protocol in mask_match_list() explicit"
authorVolker Lendecke <vl@samba.org>
Mon, 23 Nov 2009 15:34:00 +0000 (16:34 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 23 Nov 2009 15:35:00 +0000 (16:35 +0100)
This reverts commit 1e22899d268ae5a089f941a204413c07ee64fc78.

source3/client/clitar.c
source3/include/proto.h
source3/lib/util.c

index 4cbe69f649245e2cdcc25147be6b0010d7c98592..d9733294274e70fec692d2e98c4fa9eb5545a1a4 100644 (file)
@@ -827,9 +827,7 @@ static void do_tar(file_info *finfo, const char *dir)
                DEBUG(5, ("...tar_re_search: %d\n", tar_re_search));
 
                if ((!tar_re_search && clipfind(cliplist, clipn, exclaim)) ||
-                   (tar_re_search
-                    && mask_match_list(exclaim, cliplist, clipn,
-                                       get_Protocol(), True))) {
+                               (tar_re_search && mask_match_list(exclaim, cliplist, clipn, True))) {
                        DEBUG(3,("Skipping file %s\n", exclaim));
                        TALLOC_FREE(exclaim);
                        return;
@@ -1212,10 +1210,7 @@ static void do_tarput(void)
                /* Well, now we have a header, process the file ...            */
                /* Should we skip the file? We have the long name as well here */
                skip = clipn && ((!tar_re_search && clipfind(cliplist, clipn, finfo.name) ^ tar_excl) ||
-                                (tar_re_search
-                                 && mask_match_list(finfo.name, cliplist,
-                                                    clipn, get_Protocol(),
-                                                    True)));
+                                       (tar_re_search && mask_match_list(finfo.name, cliplist, clipn, True)));
 
                DEBUG(5, ("Skip = %i, cliplist=%s, file=%s\n", skip, (cliplist?cliplist[0]:NULL), finfo.name));
                if (skip) {
index 9b92b0d06bf032a52d39d9cc839f10d16603c8ec..55466f3844ef4e4d62e03f3e2a3e3f752cf78691 100644 (file)
@@ -1189,8 +1189,7 @@ bool ms_has_wild_w(const smb_ucs2_t *s);
 bool mask_match(const char *string, const char *pattern,
                enum protocol_types proto, bool is_case_sensitive);
 bool mask_match_search(const char *string, const char *pattern, bool is_case_sensitive);
-bool mask_match_list(const char *string, char **list, int listLen,
-                    enum protocol_types proto, bool is_case_sensitive);
+bool mask_match_list(const char *string, char **list, int listLen, bool is_case_sensitive);
 bool unix_wild_match(const char *pattern, const char *string);
 bool name_to_fqdn(fstring fqdn, const char *name);
 void *talloc_append_blob(TALLOC_CTX *mem_ctx, void *buf, DATA_BLOB blob);
index 1ee1bdc35fd34d8c58a9e357b1096a9d43126184..e3ceea495172a89eeb416e6a73bdaeb0e940743c 100644 (file)
@@ -2418,11 +2418,11 @@ bool mask_match_search(const char *string, const char *pattern, bool is_case_sen
  on each.  Returns True if any of the patterns match.
 *******************************************************************/
 
-bool mask_match_list(const char *string, char **list, int listLen,
-                    enum protocol_types proto, bool is_case_sensitive)
+bool mask_match_list(const char *string, char **list, int listLen, bool is_case_sensitive)
 {
        while (listLen-- > 0) {
-               if (mask_match(string, *list++, proto, is_case_sensitive))
+               if (mask_match(string, *list++, get_Protocol(),
+                             is_case_sensitive))
                        return True;
        }
        return False;