diff options
author | Tim Potter <tpot@samba.org> | 2000-12-08 03:24:38 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-12-08 03:24:38 +0000 |
commit | cf9443677d8e82f978194c43a8275e7e937e890a (patch) | |
tree | acd8bc4b51ffb2cab4254cc7be7d79b35e418149 /source3/lib | |
parent | 8d8791eefd2e915680669fe201e6b60b527dce46 (diff) | |
download | samba-cf9443677d8e82f978194c43a8275e7e937e890a.tar.gz samba-cf9443677d8e82f978194c43a8275e7e937e890a.tar.bz2 samba-cf9443677d8e82f978194c43a8275e7e937e890a.zip |
Modified argc passed to rpc_client cmd_* functions to include argv[0].
Gerald, could you check to see I haven't introduced any bugs into
rpcclient/cmd_spoolss.c?
(This used to be commit 77b0bda4df3217cd186d5b8f902a50f35346d98d)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/cmd_interp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/cmd_interp.c b/source3/lib/cmd_interp.c index 8951db10cf..15fa49d1ad 100644 --- a/source3/lib/cmd_interp.c +++ b/source3/lib/cmd_interp.c @@ -226,9 +226,9 @@ static uint32 cmd_help(struct client_info *info, int argc, char *argv[]) int i = 0; /* get help on a specific command */ - if (argc > 0) + if (argc > 1) { - if ((i = process_tok(argv[1])) >= 0) + if ((i = process_tok(argv[0])) >= 0) { fprintf(out_hnd, "HELP %s:\n\t%s\n\n", commands[i]->name, commands[i]->description); @@ -333,7 +333,7 @@ static uint32 do_command(struct client_info *info, char *line) i = process_tok(cmd_argv[0]); if (i >= 0) { - int argc = ((int)cmd_argc)-1; + int argc = ((int)cmd_argc); char **argv = cmd_argv; optind = 0; |