summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/client/client.c8
-rw-r--r--source/client/clitar.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 4abb812e89b..b450ed0cf93 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -505,12 +505,14 @@ static void do_get(char *rname,char *lname)
}
- if (!cli_getattrE(cli, fnum, &attr, &size, NULL, NULL, NULL)) {
- DEBUG(0,("getattrE: %s\n",cli_errstr(cli)));
+ if (!cli_qfileinfo(cli, fnum,
+ &attr, &size, NULL, NULL, NULL, NULL, NULL) &&
+ !cli_getattrE(cli, fnum,
+ &attr, &size, NULL, NULL, NULL)) {
+ DEBUG(0,("getattrib: %s\n",cli_errstr(cli)));
return;
}
-
DEBUG(2,("getting file %s of size %.0f as %s ",
lname, (double)size, lname));
diff --git a/source/client/clitar.c b/source/client/clitar.c
index e7ddfc5fa09..49b076b5e65 100644
--- a/source/client/clitar.c
+++ b/source/client/clitar.c
@@ -848,7 +848,7 @@ static void do_tar(file_info *finfo)
}
ntarf++; /* Make sure we have a file on there */
safe_strcpy(mtar_mask,cur_dir, sizeof(pstring));
- safe_strcat(mtar_mask,"*.*", sizeof(pstring));
+ safe_strcat(mtar_mask,"*", sizeof(pstring));
do_list(mtar_mask, attribute, do_tar, False, True);
safe_strcpy(cur_dir,saved_curdir, sizeof(pstring));
}