From cf9443677d8e82f978194c43a8275e7e937e890a Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 8 Dec 2000 03:24:38 +0000 Subject: 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) --- source3/lib/cmd_interp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/lib') 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; -- cgit