From cb6327cd2d221ab0248a802d8717ea669463845e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 30 Apr 2000 14:34:31 +0000 Subject: removed more cruft from our old wildcard matching code (This used to be commit 4a15924ffe36ed37ec193a0ef5a0487238edc311) --- source3/smbd/reply.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'source3/smbd/reply.c') 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; -- cgit