Skip to content

Commit

Permalink
s3-rpcclient: allow to set flags in cmd_ntsvcs_get_dev_list().
Browse files Browse the repository at this point in the history
Guenther
  • Loading branch information
gd committed Apr 9, 2009
1 parent 43eb506 commit ade9ef1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions source3/rpcclient/cmd_ntsvcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ade9ef1

Please sign in to comment.