diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-07-28 18:59:57 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-07-28 18:59:57 +0000 |
commit | 760fe30353de66e8e6571f8ff4ec1064261b5428 (patch) | |
tree | b9a8679eca3f93fa37a72b5d10ce5bc67c7462fd /source/client/clitar.c | |
parent | 4d9b2f48b737a3757a3c482d3d90cf0b9778260a (diff) | |
download | samba-760fe30353de66e8e6571f8ff4ec1064261b5428.tar.gz samba-760fe30353de66e8e6571f8ff4ec1064261b5428.tar.xz samba-760fe30353de66e8e6571f8ff4ec1064261b5428.zip |
client.c: Added amanda fixes.
clitar.c: Added amanda fixes.
nameannounce.c: Removed redundent code.
nameelect.c: Removed redundent code.
nameserv.h: Removed redundent code.
nameservresp.c: Removed redundent code.
namework.c: Removed redundent code.
password.c: Prevented crash if getpwnam fails.
Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/client/clitar.c')
-rw-r--r-- | source/client/clitar.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/client/clitar.c b/source/client/clitar.c index 951947ecb28..f70e639e905 100644 --- a/source/client/clitar.c +++ b/source/client/clitar.c @@ -41,7 +41,7 @@ static int attribute = aDIR | aSYSTEM | aHIDDEN; #endif static char *tarbuf; -static int tp, ntarf, tbufsiz; +static int tp, ntarf, tbufsiz, ttarf; /* Incremental mode */ BOOL tar_inc=False; /* Reset archive bit */ @@ -271,8 +271,8 @@ static void initarbuf() tbufsiz=blocksize*TBLOCK; tarbuf=malloc(tbufsiz); - /* reset tar buffer pointer and tar file counter */ - tp=0; ntarf=0; + /* reset tar buffer pointer and tar file counter and total dumped */ + tp=0; ntarf=0; ttarf=0; } /**************************************************************************** @@ -1078,6 +1078,7 @@ static void do_atar(char *rname,char *lname,file_info *finfo1) if (finfo.size % TBLOCK) dozerobuf(tarhandle, TBLOCK - (finfo.size % TBLOCK)); + ttarf+=finfo.size + TBLOCK - (finfo.size % TBLOCK); ntarf++; } @@ -1606,6 +1607,7 @@ int process_tar(char *inbuf, char *outbuf) free(tarbuf); DEBUG(0, ("tar: dumped %d tar files\n", ntarf)); + DEBUG(0, ("Total bytes written: %d\n", ttarf)); break; } |