Hi,

When using -t with htdig I got the following error:

sh: /home/loic/local/ports/htdig3/test/var/htdig/db.docs: No such file or directory

Apparently this is because it's opened with popen instead of fopen. Nice
if a program, loses if a simple file. I replaced with fopen. Did not
commit this yet. Thoughts ?

Index: DocumentDB.cc
===================================================================
RCS file: /opt/htdig/cvs/htdig3/htcommon/DocumentDB.cc,v
retrieving revision 1.20
diff -c -r1.20 DocumentDB.cc
*** DocumentDB.cc       1999/09/08 17:10:40     1.20
--- DocumentDB.cc       1999/09/09 12:58:08
***************
*** 351,357 ****
      FILE              *fl;
      String            docKey(sizeof(int));
  
!     fl = popen(filename, "w");
  
      dbf->Start_Get();
      while ((strkey = dbf->Get_Next()))
--- 351,357 ----
      FILE              *fl;
      String            docKey(sizeof(int));
  
!     fl = fopen(filename, "w");
  
      dbf->Start_Get();
      while ((strkey = dbf->Get_Next()))

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to