[Xitami] lrwp test program and QNX

Joseph Saunders xitami@lists.xitami.org
Mon, 23 Sep 2002 12:54:57 -0700


The following code:

	sprintf(buf, "%s\xFF%s\xFF", "foo", "bar");

should result in the following characters in buf: 'f', 'o', 'o', 0xff, 'b', 'a', 'r', 0xff.  
But what actually appears is: 'f', 'o', 'o', 0xff, '%', 's', 0xff.  


The lrwplib code contains this sprintf:

	sprintf(buf, "%s\xFF%s\xFF%s", appname, vhost?vhost:"", "");

which I changed to:

	sprintf(buf, "%s%c%s%c%s", appname, 0xff, vhost?vhost:"", 0xff, "");

The reason the 403 was thrown is that the registration of the peer process
name was garbled.  Xitami was doing regular GET processing on the url that
specified the lrwp peer process.

After changing the sprintf everything worked.

I did not check the Xitami source for other *printf calls that use 'xFF'
in the format specifier.


-Joe

-----Original Message-----
From: Joseph Saunders 
Sent: Monday, September 16, 2002 4:34 PM
To: xitami@lists.xitami.org
Subject: [Xitami] lrwp test program and QNX



Hello,

Having upgraded to 6.2 QNX OS, recompiled Xitami and it runs fine.
I did not have to modify anything...  (Using 6.0 the scripts had to
be modified to get a proper build)

The next step was to compile the testlrwp.c program.  It compiled fine
and starts fine.

The problem is that I can browse webpages, cgi's everything else, but if
I browse the lrwp get a 403.

Is there anythin that needs to be done on QNX that will allow access
to the lrwp??

Thanks,
-Joe


--
Xitami Users Mailing List -- For Xitami support
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami