Author: Markus
Email: [EMAIL PROTECTED]
Message:
Digging in the code of mnogosearch 3.1.9 I believe that this could be
patched if it is desired so. Personally I need the feature above
anything else, so I do not care if it is not compatible, but I do not
go about it.
In indexer.c there is the following code snippet and I wonder if I can
change it to something like where I have included comments with //mkl:
args[0]=Doc->url;
UdmBuildParamStr(cmd,sizeof(cmd),Indexer->Conf->alias_prog,args,1);
aprog=popen(cmd,"r");
UdmLog(Indexer,UDM_LOG_EXTRA,"Starting AliasProg: '%s'",cmd);
if(aprog){
ares=fgets(aliastr,sizeof(aliastr),aprog);
pclose(aprog);
if(!ares){
UdmLog(Indexer,UDM_LOG_ERROR,"AliasProg didn't return
result: '%s'",cmd);
return(IND_ERROR);
}
//mkl else {
// // we got an alias back, so if we set this to Doc->url we
should be fine
// Doc-url = ares;
// Would that work, or do I generate memory leaks, or is the Doc-url
already saved at this point of the program execution
// }
}else{
UdmLog(Indexer,UDM_LOG_ERROR,"Can't start AliasProg:
'%s'",cmd);
return(IND_ERROR);
}
Alexander, if you read it, I would very much appreciate if you could
give me some help here. Unfortunately its ages ago that I wrote
something in C, and I am not sure, if I can simply assign the pointers
or if I have to use strdup or strcpy.
Thanks A LOT,
Markus
Reply: <http://www.mnogosearch.org/board/message.php?id=2699>
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]