summaryrefslogtreecommitdiff
path: root/unpack-file.c
diff options
context:
space:
mode:
authorLibravatar Rene Scharfe <rene.scharfe@lsrfire.ath.cx>2005-06-03 13:25:18 +0200
committerLibravatar Linus Torvalds <torvalds@ppc970.osdl.org>2005-06-03 07:36:42 -0700
commita325a11b88bc13d569be1571ce559858dc224af4 (patch)
treec1b6338cf2cae327cb5830e406dd643c09093ec9 /unpack-file.c
parent[PATCH] git-tar-tree: add a test case (diff)
downloadtgif-a325a11b88bc13d569be1571ce559858dc224af4.tar.xz
[PATCH] git-tar-tree: fix write_trailer
write_trailer() writes the last 10k (a full block) of the tar archive. write_if_needed() writes out a block *if* it is full and then sets the offset to 0. In nine out of ten cases the messed up write_trailer() function didn't manage to fill the block thus not writing anything at all, truncating the archive. I was "lucky" to hit the other case and so my testing ran OK. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'unpack-file.c')
0 files changed, 0 insertions, 0 deletions