summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-30 14:34:31 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-30 14:34:31 +0000
commitcb6327cd2d221ab0248a802d8717ea669463845e (patch)
tree5661b77778fe95237b247960a9a61926c3f8a84a /source3/smbd
parent0f35ded18e399b2a5dfcb36d5b83368c1072fd5a (diff)
downloadsamba-cb6327cd2d221ab0248a802d8717ea669463845e.tar.gz
samba-cb6327cd2d221ab0248a802d8717ea669463845e.tar.bz2
samba-cb6327cd2d221ab0248a802d8717ea669463845e.zip
removed more cruft from our old wildcard matching code
(This used to be commit 4a15924ffe36ed37ec193a0ef5a0487238edc311)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 939696dd89..b152ca59ee 100644
--- a/source3/smbd/reply.c
+++ b/source3/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;