Hello! Please find a patch which fixes "DeleteNoServer no" command incorrect behaviour. Patch against server.c Thanks for help in debugging! Caffeinate The World wrote: > > --- Caffeinate The World <[EMAIL PROTECTED]> wrote: > > # ./indexer -ma -n 1 -u http://www.mnpage.com/% > > AddServer 'http://www.state.mn.us/' 17 > > AddServer 'http://www.mnworkforcecenter.org/' 17 > > AddServer 'http://www.exploreminnesota.com/' 17 > > AddServer 'http://www.tpt.org/' 17 > > AddServer 'http://www.gorp.com/gorp/location/mn/mn.htm' 17 > > AddServer 'http://lists.rootsweb.com/index/usa/MN/' 17 > > AddServer 'http://*.mn.us/*' 18 > > AddServer '(null)' 17 > > Indexer[12748]: indexer from mnogosearch-3.1.9/PgSQL started with > > '/usr/local/install/mnogosearch > > -3.1.9/etc/indexer.conf' > > Indexer[12748]: [1] http://www.mnpage.com/magazines.html > > 0 'http://www.state.mn.us/' 17 > > 1 'http://www.mnworkforcecenter.org/' 17 > > 2 'http://www.exploreminnesota.com/' 17 > > 3 'http://www.tpt.org/' 17 > > 4 'http://www.gorp.com/gorp/location/mn/mn.htm' 17 > > 5 'http://lists.rootsweb.com/index/usa/MN/' 17 > > 6 'http://*.mn.us/*' 18 > > 7 'http://lists.rootsweb.com/index/usa/MN/' 17 > > Indexer[12748]: [1] No 'Server' command for url... deleted. > > Indexer[12748]: [1] Done (627 seconds) > > > > ---cut--- > > > > looks like the 'null' server wasn't matched? > > also note that #5 and #7 are the same: > > 'http://lists.rootsweb.com/index/usa/MN/' > > > > > --- Alexander Barkov <[EMAIL PROTECTED]> wrote: > > > Well, indexer.conf is loaded as expected. > > > > > > Now find this in UdmFindServer() : > > > > > > > > > for(i=0;i<Conf->nservers;i++){ > > > > > int res; > > > regmatch_t subs[NS]; > > > > > > and insert here: > > > > > > printf("%d '%s' > > > %d\n",i,Conf->Server[i].url,Conf->Server[i].match_type); > > >
--- server.c.orig Thu Feb 1 14:17:35 2001 +++ server.c Thu Feb 1 14:20:46 2001 @@ -30,9 +30,9 @@ /* to keep srv->url unchanged */ strcpy(urlstr,UDM_NULL2EMPTY(srv->url)); - if(UDM_SRV_TYPE(match_type)==UDM_SERVER_SUBSTR){ + if((UDM_SRV_TYPE(match_type)==UDM_SERVER_SUBSTR)&&(urlstr[0])){ /* Check whether valid URL is passed */ - if((urlstr[0])&&(res=UdmParseURL(&from,urlstr))){ + if((res=UdmParseURL(&from,urlstr))){ switch(res){ case UDM_PARSEURL_LONG: Conf->errcode=1;