diff options
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_ntsvcs.c | 12 |
1 files changed, 8 insertions, 4 deletions
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); |