svn commit: samba r22179 - in branches/SAMBA_4_0/services: .

mimir at samba.org mimir at samba.org
Wed Apr 11 23:01:48 GMT 2007


Author: mimir
Date: 2007-04-11 23:01:48 +0000 (Wed, 11 Apr 2007)
New Revision: 22179

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22179

Log:
Store resource id along with the object itself to be able to return
it as "number" type. This fixes a small problem with resource set
method returning id of type "number" whereas find method was returning
id of type "string".


rafal


Modified:
   branches/SAMBA_4_0/services/resources.esp


Changeset:
Modified: branches/SAMBA_4_0/services/resources.esp
===================================================================
--- branches/SAMBA_4_0/services/resources.esp	2007-04-11 14:30:42 UTC (rev 22178)
+++ branches/SAMBA_4_0/services/resources.esp	2007-04-11 23:01:48 UTC (rev 22179)
@@ -52,6 +52,7 @@
         /* Save the resource and its type */
         r.resource = resource;
         r.type = type;
+	r.id = this.resourceList.id;
 
         /* Add this resource to the list */
         this.resourceList[this.resourceList.id] = r;
@@ -110,7 +111,7 @@
                 if (r.type == type)
                 {
                     /* Yup, this is the one they want. */
-                    return resourceId;
+		  return r.id;
                 }
             }
         }



More information about the samba-cvs mailing list