diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-11-18 12:20:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:26 -0500 |
commit | 509be8d902038ec2a75ece5fd28d43d73218f0b2 (patch) | |
tree | 6096ab41cfabb48aa510440055c69622705ed96e /source4/scripting/libjs | |
parent | d5f37ecf94e2b63511102b3fd34c0e7bcd8d7879 (diff) | |
download | samba-509be8d902038ec2a75ece5fd28d43d73218f0b2.tar.gz samba-509be8d902038ec2a75ece5fd28d43d73218f0b2.tar.bz2 samba-509be8d902038ec2a75ece5fd28d43d73218f0b2.zip |
r11781: rename tree to tcons to match the sessions substructure of smbsrv_connection
metze
(This used to be commit acd3e644e030a3544ddc6cdcd4e0ec9617732cba)
Diffstat (limited to 'source4/scripting/libjs')
-rw-r--r-- | source4/scripting/libjs/management.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/scripting/libjs/management.js b/source4/scripting/libjs/management.js index 1258368e90..e54b5e283b 100644 --- a/source4/scripting/libjs/management.js +++ b/source4/scripting/libjs/management.js @@ -39,7 +39,7 @@ function smbsrv_sessions() /* return a list of current tree connects */ -function smbsrv_trees() +function smbsrv_tcons() { var irpc = irpc_init(); status = irpc.connect("smb_server"); @@ -48,7 +48,7 @@ function smbsrv_trees() } var io = irpcObj(); - io.input.level = irpc.SMBSRV_INFO_TREES; + io.input.level = irpc.SMBSRV_INFO_TCONS; status = irpc.smbsrv_information(io); if (status.is_ok != true) { return undefined; @@ -57,10 +57,10 @@ function smbsrv_trees() /* gather the results into a single array */ var i, count=0, ret = new Object(); for (i=0;i<io.results.length;i++) { - var trees = io.results[i].info.trees.trees; + var tcons = io.results[i].info.tcons.tcons; var j; - for (j=0;j<trees.length;j++) { - ret[count] = trees[j]; + for (j=0;j<tcons.length;j++) { + ret[count] = tcons[j]; count++; } } |