Hello,

        Here's a humble patch..

        Instead of calling system(mv file1 file2) in htfuzzy/EndingsDB.cc 
& htfuzzy/Synonym.cc

        use rename(file1, file2);

        See man 2 rename 
        man 2 unlink [unlink() = rm]

        No need for any system specific stuff here, rename() is in libc.

Thanks

htfuzzy/EndingsDB.cc

82d81
< /*
90,93d88
< */
<
<     rename(root2word.get(), config["endings_root2word_db"].get());
<     rename(word2root.get(), config["endings_word2root_db"].get());

htfuzzy/Synonym.cc

121d120
< /*
128,130d126
< */
<
<     rename(dbFile.get(), config["synonym_db"].get());

-- 
Neal Richter 
Knowledgebase Developer
RightNow Technologies, Inc.
Customer Service for Every Web Site



_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to