summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-12-06 19:05:54 +0100
committerGünther Deschner <gd@samba.org>2007-12-06 19:17:57 +0100
commit7bfe569b7d3cd0709c166ab484d600ff1e2ce580 (patch)
tree60953870c44577ea5ba7be74c004213e9a852c34 /source3/rpcclient
parentbf80f40ca4bcbf0b5f5d3f7f988f121d29fd3edf (diff)
downloadsamba-7bfe569b7d3cd0709c166ab484d600ff1e2ce580.tar.gz
samba-7bfe569b7d3cd0709c166ab484d600ff1e2ce580.tar.bz2
samba-7bfe569b7d3cd0709c166ab484d600ff1e2ce580.zip
Allow to set level in cmd_wkssvc_wkstagetinfo().
Guenther (This used to be commit 2c287ce0507a019aaa4d8dec74bc5c515ec2e3c7)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_wkssvc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_wkssvc.c b/source3/rpcclient/cmd_wkssvc.c
index f3ff8113e9..5873f17813 100644
--- a/source3/rpcclient/cmd_wkssvc.c
+++ b/source3/rpcclient/cmd_wkssvc.c
@@ -32,6 +32,15 @@ static WERROR cmd_wkssvc_wkstagetinfo(struct rpc_pipe_client *cli,
union wkssvc_NetWkstaInfo info;
const char *server_name;
+ if (argc > 2) {
+ printf("usage: %s <level>\n", argv[0]);
+ return WERR_OK;
+ }
+
+ if (argc > 1) {
+ level = atoi(argv[1]);
+ }
+
server_name = cli->cli->desthost;
status = rpccli_wkssvc_NetWkstaGetInfo(cli, mem_ctx,