1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

- handle servers that don't support getattrE (ie. NT)

- use * in clitar instead of *.*
(This used to be commit 2d9335fe2a)
This commit is contained in:
Andrew Tridgell 1998-11-14 03:53:24 +00:00
parent 328b91d2c9
commit fedc62d17a
2 changed files with 6 additions and 4 deletions

View File

@ -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));

View File

@ -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));
}