summaryrefslogtreecommitdiff
path: root/source3/client/clitar.c
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>1998-09-19 04:25:10 +0000
committerRichard Sharpe <sharpe@samba.org>1998-09-19 04:25:10 +0000
commitb65bbdeefc5397f321d86146086ab495bf5d4657 (patch)
tree9a44ec5d0e3858bfa78c31c472c06a31594fecc6 /source3/client/clitar.c
parentfc82bd2914c5687c0d03636ed05280c3506cea0c (diff)
downloadsamba-b65bbdeefc5397f321d86146086ab495bf5d4657.tar.gz
samba-b65bbdeefc5397f321d86146086ab495bf5d4657.tar.bz2
samba-b65bbdeefc5397f321d86146086ab495bf5d4657.zip
Fixed changes in clitar.c that Jeremey noted. One change was
correct, the other needed slightly changing. Now to test it is all OK :-) (This used to be commit d54c91598c24e89a999936f446be134137df5dea)
Diffstat (limited to 'source3/client/clitar.c')
-rw-r--r--source3/client/clitar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 9cb71b10a2..e7ab180836 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -1725,6 +1725,7 @@ static char * get_longfilename(file_info2 finfo)
char *longname = malloc(namesize);
char *xxx;
int offset = 0, left = finfo.size;
+ BOOL first = True;
DEBUG(5, ("Restoring a long file name: %s\n", finfo.name));
DEBUG(5, ("Len = %i\n", finfo.size));
@@ -1755,7 +1756,7 @@ static char * get_longfilename(file_info2 finfo)
}
- unfixtarname(longname + offset, buffer_p, MIN(TBLOCK, finfo.size),False);
+ unfixtarname(longname + offset, buffer_p, MIN(TBLOCK, finfo.size), first--);
DEBUG(5, ("UnfixedName: %s, buffer: %s\n", longname, buffer_p));
offset += TBLOCK;