Browse Source

write all buffered data to the stream in TarOutputStream#finish. PR 50014

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1027431 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 14 years ago
parent
commit
036a9cd77d
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/tar/TarBuffer.java
  2. +1
    -0
      src/main/org/apache/tools/tar/TarOutputStream.java

+ 1
- 1
src/main/org/apache/tools/tar/TarBuffer.java View File

@@ -418,7 +418,7 @@ public class TarBuffer {
/**
* Flush the current data block if it has any data in it.
*/
private void flushBlock() throws IOException {
void flushBlock() throws IOException {
if (debug) {
System.err.println("TarBuffer.flushBlock() called.");
}


+ 1
- 0
src/main/org/apache/tools/tar/TarOutputStream.java View File

@@ -132,6 +132,7 @@ public class TarOutputStream extends FilterOutputStream {
// http://issues.apache.org/bugzilla/show_bug.cgi?id=28776
writeEOFRecord();
writeEOFRecord();
buffer.flushBlock();
}

/**


Loading…
Cancel
Save