- handle servers that don't support getattrE (ie. NT)
authorAndrew Tridgell <tridge@samba.org>
Sat, 14 Nov 1998 03:53:24 +0000 (03:53 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 14 Nov 1998 03:53:24 +0000 (03:53 +0000)
- use * in clitar instead of *.*
(This used to be commit 2d9335fe2a6fc3bb6687360c99d8fc69cb2d555a)

source3/client/client.c
source3/client/clitar.c

index 4abb812e89be91247679967e728d20966af776d3..b450ed0cf9374072a304e687c062710d0a13ff28 100644 (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));
 
index e7ddfc5fa0929e7d36052e2790708f962cb53f23..49b076b5e65d4c4d5d480dcffeae17b02d9a607f 100644 (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));
     }