My bug...

Please apply the following patch (attached) to templates.cpp
To do that, copy the file to src dir and run
patch -p0 < templates.diff

Anybody who's got the same problem, please take this patch.

Claus Jul Larsen wrote:
> 
> Yes it worked in 1.03.
> 
> > Is file /web/search.enovasion.dk/um.html located on computer
> search.enovasion.dk ?
> 
> Yes. Templates is on search.envoasion.dk and searchd is on an another
> server.
> 
> Claus
> 
> -----Oprindelig meddelelse-----
> Fra: Alexander F. Avdonkin [mailto:[EMAIL PROTECTED]]
> Sendt: 14. marts 2001 15:48
> Til: [EMAIL PROTECTED]
> Emne: Re: [aseek-users] s.cgi and templates in 1.04
> 
> Did it work in 1.0.3 ?
> Is file /web/search.enovasion.dk/um.html located on computer
> search.enovasion.dk ?
> 
> ----- Original Message -----
> From: "Claus Jul Larsen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 14, 2001 10:36 PM
> Subject: [aseek-users] s.cgi and templates in 1.04
> 
> > Hi
> >
> > I've just upgraded to 1.04 and a new problem is her..
> >
> >
> http://search.enovasion.dk/cgi-bin/s.cgi?tmpl=/web/search.enovasion.dk/um.ht
> > ml
> >
> > reply with the page:
> >
> > Can't open template file '/we'!
> >
> > The searchd daemon is on an another server which s.cgi points to.
> >
> > Claus
> >
> > -----Oprindelig meddelelse-----
> > Fra: Sergey V. Yershov [mailto:[EMAIL PROTECTED]]
> > Sendt: 14. marts 2001 15:10
> > Til: Alexander F. Avdonkin
> > Emne: Re[2]: [aseek-users] Troubles with web spaces
> >
> >
> > Hello Alexander,
> >
> > Aspseek placed on Linux 6.0.
> > Compiled with -o0
> >
> > trouble was in function ParseCgiQuery
> > in anyway independed from on or off in psN=
> > sscanf returned 1 what of course right because 1 parameter retrived
> > from passed token, but strange what it was rerurned even part of
> > string doesn't mach :-|
> >
> > Wednesday, March 14, 2001, 4:47:20 PM, you wrote:
> >
> > AFA> How have you created web-spaces ?
> > AFA> Can you provide URL from which we can try to search ?
> > AFA> Check if space files are created by looking at
> > AFA> <ASPseekDir>/var/<DBName>/subsets/space<N> where <N> is 1..2
> > AFA> If those files are absent, check your table "spaces" and if it is not
> > empty,
> > AFA> then run "index -B" to generate files.
> >
> > AFA> Alexander.
> > >>
> > >>   I was create 2 web spaces and expected what if i
> > >>   pointed in URL wich space i want to use (like ?sp1=on&sp2=off)
> > >>   server will return content from only one space? but in anyway i was
> > >>   get content from both of spaces.
> > >>
> > >>   Where was i misunderstood docs ?
> > >>
> > >> --
> > >> Best regards,
> > >>  Sergey                          mailto:[EMAIL PROTECTED]
> > >>
> > >>
> >
> >
> >
> >
> > --
> > Best regards,
> >  Sergey                            mailto:[EMAIL PROTECTED]
> >

--   [EMAIL PROTECTED]      http://kir.sever.net      ICQ 7551596   --
Answers: $1, short: $5, correct: $25, dumb questions are still free.
Index: templates.cpp
===================================================================
RCS file: /home/cvs/aspseek/src/templates.cpp,v
retrieving revision 1.37
diff -u -r1.37 templates.cpp
--- templates.cpp       2001/03/12 11:00:49     1.37
+++ templates.cpp       2001/03/14 15:55:07
@@ -1245,8 +1245,7 @@
                        UnescapeCGIQuery(tmplu, tmpl);
                        if (tmplu[0] == '/')
                        {
-                               templ[sizeof(templ) - 1] = '\0';
-                               strncpy(templ, tmplu, sizeof(templ) - 1);
+                               strcpy(templ, tmplu);
                        }
                        else
                        {

Reply via email to