mirror of
https://github.com/vbatts/tar-split.git
synced 2024-11-22 16:15:39 +00:00
main.go: found the padding after EOF ...
This commit is contained in:
parent
c9b618ab48
commit
e8456b0d49
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
@ -43,6 +43,11 @@ func main() {
|
||||||
if err != io.EOF {
|
if err != io.EOF {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
// even when an EOF is reached, there is often 1024 null bytes on
|
||||||
|
// the end of an archive. Collect them too.
|
||||||
|
post := tr.RawBytes()
|
||||||
|
output.Write(post)
|
||||||
|
sum += int64(len(post))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue