mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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 <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
9d14187c95
commit
8fa451d2b0
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user