mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r23: get rid of def_finfo
This commit is contained in:
parent
7cab3a00d7
commit
25b7ec390a
@ -82,8 +82,6 @@ static BOOL abort_mget = True;
|
|||||||
|
|
||||||
static pstring fileselection = "";
|
static pstring fileselection = "";
|
||||||
|
|
||||||
extern file_info def_finfo;
|
|
||||||
|
|
||||||
/* timing globals */
|
/* timing globals */
|
||||||
SMB_BIG_UINT get_total_size = 0;
|
SMB_BIG_UINT get_total_size = 0;
|
||||||
unsigned int get_total_time_ms = 0;
|
unsigned int get_total_time_ms = 0;
|
||||||
|
@ -109,7 +109,6 @@ static char **cliplist=NULL;
|
|||||||
static int clipn=0;
|
static int clipn=0;
|
||||||
static BOOL must_free_cliplist = False;
|
static BOOL must_free_cliplist = False;
|
||||||
|
|
||||||
extern file_info def_finfo;
|
|
||||||
extern BOOL lowercase;
|
extern BOOL lowercase;
|
||||||
extern uint16 cnum;
|
extern uint16 cnum;
|
||||||
extern BOOL readbraw_supported;
|
extern BOOL readbraw_supported;
|
||||||
@ -624,14 +623,7 @@ static void do_atar(char *rname,char *lname,file_info *finfo1)
|
|||||||
finfo.name = finfo1 -> name;
|
finfo.name = finfo1 -> name;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
finfo.size = def_finfo.size;
|
ZERO_STRUCT(finfo);
|
||||||
finfo.mode = def_finfo.mode;
|
|
||||||
finfo.uid = def_finfo.uid;
|
|
||||||
finfo.gid = def_finfo.gid;
|
|
||||||
finfo.mtime = def_finfo.mtime;
|
|
||||||
finfo.atime = def_finfo.atime;
|
|
||||||
finfo.ctime = def_finfo.ctime;
|
|
||||||
finfo.name = def_finfo.name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dry_run)
|
if (dry_run)
|
||||||
|
@ -24,9 +24,6 @@
|
|||||||
Functions nicked from lib/util.c needed by client.
|
Functions nicked from lib/util.c needed by client.
|
||||||
*******************************************************************/
|
*******************************************************************/
|
||||||
|
|
||||||
/* a default finfo structure to ensure all fields are sensible */
|
|
||||||
file_info def_finfo = {-1,0,0,0,0,0,0,"",""};
|
|
||||||
|
|
||||||
/*******************************************************************
|
/*******************************************************************
|
||||||
A wrapper that handles case sensitivity and the special handling
|
A wrapper that handles case sensitivity and the special handling
|
||||||
of the ".." name.
|
of the ".." name.
|
||||||
|
Loading…
Reference in New Issue
Block a user