git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aebed4b
)
merge smbtar fix from 2.2
author
Herb Lewis
<herb@samba.org>
Mon, 16 Dec 2002 21:32:32 +0000
(21:32 +0000)
committer
Herb Lewis
<herb@samba.org>
Mon, 16 Dec 2002 21:32:32 +0000
(21:32 +0000)
source/client/clitar.c
patch
|
blob
|
history
diff --git
a/source/client/clitar.c
b/source/client/clitar.c
index c453cfbb5488bbe4fedd9902570c912d05b83372..bf26beb652aa69fcc407ae6f8657561e93fd427d 100644
(file)
--- a/
source/client/clitar.c
+++ b/
source/client/clitar.c
@@
-45,10
+45,10
@@
typedef struct file_info_struct file_info2;
struct file_info_struct
{
struct file_info_struct
{
-
size_t
size;
+
SMB_BIG_UINT
size;
uint16 mode;
uint16 mode;
-
in
t uid;
-
in
t gid;
+
uid_
t uid;
+
gid_
t gid;
/* These times are normally kept in GMT */
time_t mtime;
time_t atime;
/* These times are normally kept in GMT */
time_t mtime;
time_t atime;
@@
-620,6
+620,7
@@
static void do_atar(char *rname,char *lname,file_info *finfo1)
finfo.mtime = finfo1 -> mtime;
finfo.atime = finfo1 -> atime;
finfo.ctime = finfo1 -> ctime;
finfo.mtime = finfo1 -> mtime;
finfo.atime = finfo1 -> atime;
finfo.ctime = finfo1 -> ctime;
+ finfo.name = finfo1 -> name;
}
else {
finfo.size = def_finfo.size;
}
else {
finfo.size = def_finfo.size;
@@
-629,13
+630,14
@@
static void do_atar(char *rname,char *lname,file_info *finfo1)
finfo.mtime = def_finfo.mtime;
finfo.atime = def_finfo.atime;
finfo.ctime = def_finfo.ctime;
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)
{
- DEBUG(3,("skipping file %s of size %
d
bytes\n",
+ DEBUG(3,("skipping file %s of size %
12.0f
bytes\n",
finfo.name,
finfo.name,
- (
int
)finfo.size));
+ (
double
)finfo.size));
shallitime=0;
ttarf+=finfo.size + TBLOCK - (finfo.size % TBLOCK);
ntarf++;
shallitime=0;
ttarf+=finfo.size + TBLOCK - (finfo.size % TBLOCK);
ntarf++;
@@
-1833,7
+1835,7
@@
int tar_parseargs(int argc, char *argv[], char *Optarg, int Optind)
if (tar_type=='c' && (dry_run || strcmp(argv[Optind], "/dev/null")==0))
{
if (!dry_run) {
if (tar_type=='c' && (dry_run || strcmp(argv[Optind], "/dev/null")==0))
{
if (!dry_run) {
- DEBUG(0,("Output is /dev/null, assuming dry_run"));
+ DEBUG(0,("Output is /dev/null, assuming dry_run
\n
"));
dry_run = True;
}
tarhandle=-1;
dry_run = True;
}
tarhandle=-1;