Update of /cvsroot/monetdb/MonetDB5/src/modules/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10449/src/modules/mal

Modified Files:
        clients.mx 
Log Message:
some fields in clients struct are gone
+ fixed getUsers (incorrect refcounting)


Index: clients.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/clients.mx,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- clients.mx  8 Sep 2007 19:03:27 -0000       1.69
+++ clients.mx  6 Nov 2007 23:25:42 -0000       1.70
@@ -257,13 +257,11 @@
 
        BUNins(b, "user", local_itoa((int)c->user), FALSE);
        BUNins(b, "password", "", FALSE); /* FIXME: get rid of this */
-       BUNins(b, "permission", local_itoa(c->permission), FALSE);
        BUNins(b, "scenario", c->scenario, FALSE);
        BUNins(b, "timer", local_itoa((int) c->timer), FALSE);
        BUNins(b, "trace", local_itoa(c->itrace), FALSE);
        BUNins(b, "listing", local_itoa(c->listing), FALSE);
        BUNins(b, "debug", local_itoa(c->debug), FALSE);
-       BUNins(b, "cwd", c->cwd, FALSE);
        CLTtimeConvert((time_t) c->login,s);
        BUNins(b, "login", s, FALSE);
        CLTtimeConvert((time_t) c->delay,s);
@@ -543,10 +541,13 @@
 address CLTgetUsers
 comment "return a BAT with user id and name available in the system with 
access to the given scenario(s)";
 @c
-str CLTgetUsers(bat *ret, bat *scens) {
+str CLTgetUsers(bat *ret, bat *scens) 
+{
+       BAT *r = NULL;
        str tmp;
 
-       rethrow("getUsers", tmp, AUTHgetUsers(ret, scens));
+       rethrow("getUsers", tmp, AUTHgetUsers(&r, scens));
+       BBPkeepref(*ret = r->batCacheid);
        return(MAL_SUCCEED);
 }
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to