Browse Source

Write two EOF blocks for tar rather than one

PR: 28776
Obtained from: Oliver Rossmueller


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277339 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
3d350f4b83
3 changed files with 8 additions and 1 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +3
    -0
      WHATSNEW
  3. +4
    -1
      src/main/org/apache/tools/tar/TarOutputStream.java

+ 1
- 0
CONTRIBUTORS View File

@@ -155,6 +155,7 @@ Nick Pellow
Nicola Ken Barozzi Nicola Ken Barozzi
Nico Seessle Nico Seessle
Nigel Magnay Nigel Magnay
Oliver Rossmueller
Patrick C. Beard Patrick C. Beard
Patrick Chanezon Patrick Chanezon
Patrick G. Heck (Gus Heck) Patrick G. Heck (Gus Heck)


+ 3
- 0
WHATSNEW View File

@@ -123,6 +123,9 @@ Changes that could break older environments:
* The subant task used the canonical version of a file path. This * The subant task used the canonical version of a file path. This
has been changed to use the absolute path. Bugzilla 30438. has been changed to use the absolute path. Bugzilla 30438.


* Tar now writes two EOF blocks rather than one.
Bugzilla report 28776

Other changes: Other changes:
-------------- --------------




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

@@ -96,9 +96,12 @@ public class TarOutputStream extends FilterOutputStream {


/** /**
* Ends the TAR archive without closing the underlying OutputStream. * Ends the TAR archive without closing the underlying OutputStream.
* The result is that the EOF record of nulls is written.
* The result is that the two EOF records of nulls are written.
*/ */
public void finish() throws IOException { public void finish() throws IOException {
// See Bugzilla 28776 for a discussion on this
// http://issues.apache.org/bugzilla/show_bug.cgi?id=28776
this.writeEOFRecord();
this.writeEOFRecord(); this.writeEOFRecord();
} }




Loading…
Cancel
Save