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 | 77b0bda4df3217cd186d5b8f902a50f35346d98d (patch) | |
tree | 039af85345c2bbdd235e4ca37de85e54adf9c1fd /source/lib/cmd_interp.c | |
parent | f98e0d7b17edd627e704fc7e73534e1278d82fb0 (diff) | |
download | samba-77b0bda4df3217cd186d5b8f902a50f35346d98d.tar.gz samba-77b0bda4df3217cd186d5b8f902a50f35346d98d.tar.xz samba-77b0bda4df3217cd186d5b8f902a50f35346d98d.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?
Diffstat (limited to 'source/lib/cmd_interp.c')
-rw-r--r-- | source/lib/cmd_interp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/cmd_interp.c b/source/lib/cmd_interp.c index 8951db10cfa..15fa49d1ada 100644 --- a/source/lib/cmd_interp.c +++ b/source/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; |