Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16:/tmp/cvs-serv10746/runtime
Modified Files:
xrpc_server.mx
Log Message:
fixing BUG #1714603 "PF: XRpc tests fail on MacOS (Darwin) since 2007-03-10";
part 3 of 3:
BATs xrpc_trusted, xrpc_admin & xrpc_user are [str,void(nil)],
hence, in isAllowed() we need to use BUNhead instead of BUNtail
to read the BUNs' (head!) values
NOTE:
This turned out to be not a MacOS (Darwin) specific problem
but a general BUG in the code --- I have not idea, why it
apparently did happen to work on all other platforms;
might be little-/big-endial related.
In any case, this once again proves how important and "handy"
multi-platform testing is to detect and eventually fix bugs
--- provided someone does care at all ...
Index: xrpc_server.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc_server.mx,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- xrpc_server.mx 9 May 2007 08:34:47 -0000 1.44
+++ xrpc_server.mx 9 May 2007 08:40:07 -0000 1.45
@@ -337,7 +337,7 @@
{
BUN p,q;
BATloop(allowed, p, q) {
- char* prefix = BUNtail(allowed,p);
+ char* prefix = BUNhead(allowed,p);
if (strncmp(key, prefix, strlen(prefix)) == 0)
return 1;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins