Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16:/tmp/cvs-serv18488

Modified Files:
        xrpc_server.mx 
Log Message:

more verbose XRpc error message to support debugging for
BUG #1714603 "PF: XRpc tests fail on MacOS (Darwin) since 2007-03-10".


Index: xrpc_server.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc_server.mx,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- xrpc_server.mx      4 May 2007 13:10:32 -0000       1.40
+++ xrpc_server.mx      7 May 2007 21:39:46 -0000       1.41
@@ -353,7 +353,11 @@
 isTrusted(stream *out, char *location)
 {
     if (!isAllowed(xrpc_trusted, location)) {
-        send_err(out, 1, ERR403, "env:Sender", "Called module not allowed.");
+        char * msg = "Called module not allowed:";
+        size_t len = strlen(msg) + strlen(location) + 5;
+        char * err = alloca(len);  assert(err);
+        snprintf(err, len, "%s '%s'.", msg, location);
+        send_err(out, 1, ERR403, "env:Sender", err);
         return 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

Reply via email to