From: Volker Lendecke Date: Mon, 28 Sep 2020 12:11:13 +0000 (+0200) Subject: smbclient: Remove the "abort_mget" variable X-Git-Tag: talloc-2.3.2~427 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fa451d2b052223a11b24ffc2a956b80d03aaa7c;p=thirdparty%2Fsamba.git smbclient: Remove the "abort_mget" variable This was never set to true anywhere in the code Bug: https://bugzilla.samba.org/show_bug.cgi?id=14517 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/client/client.c b/source3/client/client.c index 4b3ac1955e6..6e1d68996d1 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -86,8 +86,6 @@ static char dest_ss_str[INET6_ADDRSTRLEN]; #define SEPARATORS " \t\n\r" -static bool abort_mget = true; - /* timing globals */ uint64_t get_total_size = 0; unsigned int get_total_time_ms = 0; @@ -1216,11 +1214,6 @@ static NTSTATUS do_mget(struct cli_state *cli_state, struct file_info *finfo, if (strequal(finfo->name,".") || strequal(finfo->name,"..")) return NT_STATUS_OK; - if (abort_mget) { - d_printf("mget aborted\n"); - return NT_STATUS_UNSUCCESSFUL; - } - if (finfo->attr & FILE_ATTRIBUTE_DIRECTORY) { if (asprintf(&quest, "Get directory %s? ",finfo->name) < 0) { @@ -1418,8 +1411,6 @@ static int cmd_mget(void) attribute |= FILE_ATTRIBUTE_DIRECTORY; } - abort_mget = false; - while (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { mget_mask = talloc_strdup(ctx, client_get_cur_dir());