summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-10 00:00:44 +0200
committerGünther Deschner <gd@samba.org>2009-04-10 01:06:56 +0200
commitade9ef19835b6464eeddd351a165eb4b9bf2366c (patch)
tree1033b213e9e3e1ed6ccc067ddb1fcf1ff07a6d04 /source3/rpcclient
parent43eb50655e71e5f407ffbd7069cc2d45a3b478b6 (diff)
downloadsamba-ade9ef19835b6464eeddd351a165eb4b9bf2366c.tar.gz
samba-ade9ef19835b6464eeddd351a165eb4b9bf2366c.tar.bz2
samba-ade9ef19835b6464eeddd351a165eb4b9bf2366c.zip
s3-rpcclient: allow to set flags in cmd_ntsvcs_get_dev_list().
Guenther
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_ntsvcs.c12
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);