namazu-users-en
[Top] [All Lists]

[Namazu-users-en] Re: some queries failing (cgi)

2005-06-17 11:08:48

I don't know if this is a valid test or not, but I went in to namazu- 
cgi.c and added a line

     if (localedir != NULL) {
         bindtextdomain(PACKAGE, localedir);
     } else {
         bindtextdomain(PACKAGE, LOCALEDIR);
     }
     textdomain(PACKAGE);



         freopen("cgi_output", "w", stdout);

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In looking at the other code, it appeared that stdout was used as the  
output of the cgi back to apache and I wanted to capture that instead  
of sending it back.

If this is valid, and it appears to be since I can run the cgi with a  
known good query and the file captures all the http headers and html  
that apache gets, the file is empty when run with a known bad query.

More as it develops.

Chad


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad(_at_)shire(_dot_)net


_______________________________________________
Namazu-users-en mailing list
Namazu-users-en(_at_)namazu(_dot_)org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en

<Prev in Thread] Current Thread [Next in Thread>