diff options
author | Eloy Paris <peloy@samba.org> | 2003-09-08 14:48:09 +0000 |
---|---|---|
committer | Eloy Paris <peloy@samba.org> | 2003-09-08 14:48:09 +0000 |
commit | 657e9fa191c76b1ce41aa4c44e0626104c65bfa8 (patch) | |
tree | 4dbcd51e6702334c89922c8927f67f635b9e9bb6 /packaging/Debian/debian/patches/smbclient-tar.patch.unused | |
parent | 7a0b58a012590009a0d05430ea0c75ac4509830c (diff) | |
download | samba-657e9fa191c76b1ce41aa4c44e0626104c65bfa8.tar.gz samba-657e9fa191c76b1ce41aa4c44e0626104c65bfa8.tar.bz2 samba-657e9fa191c76b1ce41aa4c44e0626104c65bfa8.zip |
Sync'ing packaging/Debian/ with the latest files from the official
Debian packages. This files are in sync. with the Debian packages for
3.0.0rc2.
(This used to be commit 7d8d193c05d60ab9b86d52075bb9ec5ad1857903)
Diffstat (limited to 'packaging/Debian/debian/patches/smbclient-tar.patch.unused')
-rw-r--r-- | packaging/Debian/debian/patches/smbclient-tar.patch.unused | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packaging/Debian/debian/patches/smbclient-tar.patch.unused b/packaging/Debian/debian/patches/smbclient-tar.patch.unused new file mode 100644 index 0000000000..e2a4c3ce2c --- /dev/null +++ b/packaging/Debian/debian/patches/smbclient-tar.patch.unused @@ -0,0 +1,43 @@ +diff -uNr samba-3.0.0beta2.orig/source/client/client.c samba-3.0.0beta2/source/client/client.c +--- samba-3.0.0beta2.orig/source/client/client.c 2003-07-01 22:36:24.000000000 -0500 ++++ samba-3.0.0beta2/source/client/client.c 2003-07-06 15:17:36.000000000 -0500 +@@ -2773,6 +2773,7 @@ + int opt; + pstring query_host; + BOOL message = False; ++ char* tar_args = NULL; + extern char tar_type; + pstring term_code; + static const char *new_name_resolve_order = NULL; +@@ -2816,7 +2817,7 @@ + max_protocol = interpret_protocol(poptGetOptArg(pc), max_protocol); + break; + case 'T': +- if (!tar_parseargs(argc, argv, poptGetOptArg(pc), optind)) { ++ if (!(tar_args = poptGetOptArg(pc))) { + poptPrintUsage(pc, stderr, 0); + exit(1); + } +@@ -2917,6 +2917,22 @@ + pstrcpy(cmdline_auth_info.password,poptGetArg(pc)); + } + ++ /* The tar command may take a number of string options; pass ++ everything we have left to tar_parseargs(). */ ++ if (tar_args) { ++ const char **argv2 = poptGetArgs(pc); ++ int argc2 = 0; ++ ++ if (argv2) { ++ while (argv2[argc2]) argc2++; ++ } ++ ++ if (!tar_parseargs(argc2, argv2, tar_args, 0)) { ++ poptPrintUsage(pc, stderr, 0); ++ exit(1); ++ } ++ } ++ + init_names(); + + if(new_name_resolve_order) |