Browse Source

Test should be >= since we need space for the terminator.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268556 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
e9117208e2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/tar/TarOutputStream.java

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

@@ -164,7 +164,7 @@ public class TarOutputStream extends FilterOutputStream {
* @param entry The TarEntry to be written to the archive.
*/
public void putNextEntry(TarEntry entry) throws IOException {
if (entry.getName().length() > TarConstants.NAMELEN) {
if (entry.getName().length() >= TarConstants.NAMELEN) {

if (longFileMode == LONGFILE_GNU) {
// create a TarEntry for the LongLink, the contents


Loading…
Cancel
Save