smbclient: Remove the "abort_mget" variable
authorVolker Lendecke <vl@samba.org>
Mon, 28 Sep 2020 12:11:13 +0000 (14:11 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 30 Sep 2020 15:58:39 +0000 (15:58 +0000)
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 <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/client/client.c

index 4b3ac1955e6d63bfdf7b3976c4b4e31a4ce2a4b6..6e1d68996d1fee724e525a9d473f863e76a89dc9 100644 (file)
@@ -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());