[PATCH] git-tar-tree: fix write_trailer
authorRene Scharfe <redacted>
Fri, 3 Jun 2005 11:25:18 +0000 (13:25 +0200)
committerLinus Torvalds <redacted>
Fri, 3 Jun 2005 14:36:42 +0000 (07:36 -0700)
commita325a11b88bc13d569be1571ce559858dc224af4
treec1b6338cf2cae327cb5830e406dd643c09093ec9
parentd3d49c3d3559d4b5e79ae99fe485af48606d5cab
[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 <redacted>
Signed-off-by: Linus Torvalds <redacted>
tar-tree.c
git clone https://git.99rst.org/PROJECT