1 diff -uNr samba-3.0.0beta2.orig/source/client/client.c samba-3.0.0beta2/source/client/client.c
2 --- samba-3.0.0beta2.orig/source/client/client.c 2003-07-01 22:36:24.000000000 -0500
3 +++ samba-3.0.0beta2/source/client/client.c 2003-07-06 15:17:36.000000000 -0500
8 + char* tar_args = NULL;
11 static const char *new_name_resolve_order = NULL;
13 max_protocol = interpret_protocol(poptGetOptArg(pc), max_protocol);
16 - if (!tar_parseargs(argc, argv, poptGetOptArg(pc), optind)) {
17 + if (!(tar_args = poptGetOptArg(pc))) {
18 poptPrintUsage(pc, stderr, 0);
21 @@ -2917,6 +2917,22 @@
22 pstrcpy(cmdline_auth_info.password,poptGetArg(pc));
25 + /* The tar command may take a number of string options; pass
26 + everything we have left to tar_parseargs(). */
28 + const char **argv2 = poptGetArgs(pc);
32 + while (argv2[argc2]) argc2++;
35 + if (!tar_parseargs(argc2, argv2, tar_args, 0)) {
36 + poptPrintUsage(pc, stderr, 0);
43 if(new_name_resolve_order)