diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-30 14:34:31 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-30 14:34:31 +0000 |
commit | 4a15924ffe36ed37ec193a0ef5a0487238edc311 (patch) | |
tree | aefba650ff445673d15c9337d2025ce09894020a /source/smbd/reply.c | |
parent | 85d634974f4f8841bf68cd2b22d134fbc010b568 (diff) | |
download | samba-4a15924ffe36ed37ec193a0ef5a0487238edc311.tar.gz samba-4a15924ffe36ed37ec193a0ef5a0487238edc311.tar.xz samba-4a15924ffe36ed37ec193a0ef5a0487238edc311.zip |
removed more cruft from our old wildcard matching code
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 939696dd89a..b152ca59ee4 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -1311,43 +1311,6 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size fstrcpy(mask, dptr_wcard(dptr_num)); } - /* turn strings of spaces into a . */ - { - trim_string(mask,NULL," "); - if ((p = strrchr(mask,' '))) - { - fstring ext; - fstrcpy(ext,p+1); - *p = 0; - trim_string(mask,NULL," "); - if (ext[0]) { - pstrcat(mask,"."); - pstrcat(mask,ext); - } - } - } - - { - int skip; - p = mask; - while(*p) - { - if((skip = get_character_len( *p )) != 0 ) - { - p += skip; - } - else - { - if (*p != '?' && *p != '*' && !isdoschar(*p)) - { - DEBUG(5,("Invalid char [%c] in search mask?\n",*p)); - *p = '?'; - } - p++; - } - } - } - if (can_open) { p = smb_buf(outbuf) + 3; |