summaryrefslogtreecommitdiffstats
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-27 22:53:28 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-27 22:53:28 +0000
commitad1e5fdd96aa2c2d42b14a55c88d39ec0b927014 (patch)
treed31ef2bff4753e758a05dca7e69889c17538054c /source3/rpcclient
parentc80b85803b9fbc11cbf77486b847da9f38ba3684 (diff)
downloadsamba-ad1e5fdd96aa2c2d42b14a55c88d39ec0b927014.tar.gz
samba-ad1e5fdd96aa2c2d42b14a55c88d39ec0b927014.tar.xz
samba-ad1e5fdd96aa2c2d42b14a55c88d39ec0b927014.zip
moved browser command brsinfo over to new abstracted connection
(This used to be commit 601d217f44ea1ce3735b9267b6f829b472a982b4)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_brs.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source3/rpcclient/cmd_brs.c b/source3/rpcclient/cmd_brs.c
index ff8e1cf66a8..ca1dbe036ca 100644
--- a/source3/rpcclient/cmd_brs.c
+++ b/source3/rpcclient/cmd_brs.c
@@ -33,8 +33,6 @@ extern int DEBUGLEVEL;
#define DEBUG_TESTING
-extern struct cli_state *smb_cli;
-
extern FILE* out_hnd;
@@ -43,7 +41,6 @@ Browser get info query
****************************************************************************/
void cmd_brs_query_info(struct client_info *info, int argc, char *argv[])
{
- uint16 nt_pipe_fnum;
fstring dest_brs;
BRS_INFO_100 ctr;
uint32 info_level = 100;
@@ -64,17 +61,8 @@ void cmd_brs_query_info(struct client_info *info, int argc, char *argv[])
DEBUG(4,("cmd_brs_query_info: server:%s info level: %d\n",
dest_brs, info_level));
- DEBUG(5, ("cmd_brs_query_info: smb_cli->fd:%d\n", smb_cli->fd));
-
- /* open LSARPC session. */
- res = res ? cli_nt_session_open(smb_cli, PIPE_BROWSER, &nt_pipe_fnum) : False;
-
/* send info level: receive requested info. hopefully. */
- res = res ? do_brs_query_info(smb_cli, nt_pipe_fnum,
- dest_brs, info_level, &ctr) : False;
-
- /* close the session */
- cli_nt_session_close(smb_cli, nt_pipe_fnum);
+ res = res ? brs_query_info( dest_brs, info_level, &ctr) : False;
if (res)
{