git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43eb506
)
s3-rpcclient: allow to set flags in cmd_ntsvcs_get_dev_list().
author
Günther Deschner
<gd@samba.org>
Thu, 9 Apr 2009 22:00:44 +0000
(
00:00
+0200)
committer
Günther Deschner
<gd@samba.org>
Thu, 9 Apr 2009 23:06:56 +0000
(
01:06
+0200)
Guenther
source3/rpcclient/cmd_ntsvcs.c
patch
|
blob
|
history
diff --git
a/source3/rpcclient/cmd_ntsvcs.c
b/source3/rpcclient/cmd_ntsvcs.c
index eb620d06b269f30a2bc5a9fceeb5ebf7037aaa18..a345cdc8bf0b3d84a83bd5a4ee47745a9fa80d90 100644
(file)
--- 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);