From ade9ef19835b6464eeddd351a165eb4b9bf2366c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 10 Apr 2009 00:00:44 +0200 Subject: s3-rpcclient: allow to set flags in cmd_ntsvcs_get_dev_list(). Guenther --- source3/rpcclient/cmd_ntsvcs.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/cmd_ntsvcs.c b/source3/rpcclient/cmd_ntsvcs.c index eb620d06b2..a345cdc8bf 100644 --- a/source3/rpcclient/cmd_ntsvcs.c +++ b/source3/rpcclient/cmd_ntsvcs.c @@ -235,17 +235,21 @@ static WERROR cmd_ntsvcs_get_dev_list(struct rpc_pipe_client *cli, uint32_t length = 0; uint32_t flags = 0; - if (argc > 3) { - printf("usage: %s [length] [filter]\n", argv[0]); + if (argc > 4) { + printf("usage: %s [filter] [length] [flags]\n", argv[0]); return WERR_OK; } if (argc >= 2) { - length = atoi(argv[1]); + filter = argv[1]; } if (argc >= 3) { - filter = argv[2]; + length = atoi(argv[2]); + } + + if (argc >= 4) { + flags = atoi(argv[3]); } buffer = talloc(mem_ctx, uint16_t); -- cgit