diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2013-07-08 18:09:47 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-02-19 18:22:26 +0100 |
commit | 45a45c8edac20469e5b9e7b30a55e3a591b62f79 (patch) | |
tree | ae8a31183f5d267e9552690dfb768b3b8499b397 /source3/client/client.c | |
parent | eebd378b6cbc4b19c35b670cd5e493ef575c19cb (diff) | |
download | samba-45a45c8edac20469e5b9e7b30a55e3a591b62f79.tar.gz samba-45a45c8edac20469e5b9e7b30a55e3a591b62f79.tar.xz samba-45a45c8edac20469e5b9e7b30a55e3a591b62f79.zip |
implement argument parsing, split client_proto.h
Signed-off-by: Aurélien Aptel <aurelien.aptel@gmail.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/client/client.c')
-rw-r--r-- | source3/client/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index e039a470cb..4fc285f08c 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -26,6 +26,7 @@ #include "popt_common.h" #include "rpc_client/cli_pipe.h" #include "client/client_proto.h" +#include "client/clitar_proto.h" #include "../librpc/gen_ndr/ndr_srvsvc_c.h" #include "../lib/util/select.h" #include "system/readline.h" @@ -5513,12 +5514,14 @@ static int do_message_op(struct user_auth_info *a_info) * position of the -T option in the raw argv[]. */ { int i; + extern struct tar tar_ctx; + for (i = 1; i < argc; i++) { if (strncmp("-T", argv[i],2)==0) break; } i++; - if (!tar_parseargs(argc, argv, poptGetOptArg(pc), i)) { + if (!tar_parse_args(&tar_ctx, poptGetOptArg(pc), argv + i, argc - i)) { poptPrintUsage(pc, stderr, 0); exit(1); } |