ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/tar TarOutputStream.java
Date Thu, 01 Feb 2001 15:52:19 GMT
conor       01/02/01 07:52:18

  Modified:    src/main/org/apache/tools/tar TarOutputStream.java
  Log:
  Test should be >= since we need space for the terminator.
  
  Revision  Changes    Path
  1.4       +1 -1      jakarta-ant/src/main/org/apache/tools/tar/TarOutputStream.java
  
  Index: TarOutputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/tar/TarOutputStream.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TarOutputStream.java	2001/02/01 15:46:32	1.3
  +++ TarOutputStream.java	2001/02/01 15:52:17	1.4
  @@ -164,7 +164,7 @@
        * @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
  
  
  

Mime
View raw message