commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons-sandbox/compress/src/java/org/apache/commons/compress/tar TarInputStream.java
Date Thu, 11 Mar 2004 05:30:37 GMT
bayard      2004/03/10 21:30:37

  Modified:    compress/src/java/org/apache/commons/compress/tar
                        TarInputStream.java
  Log:
  Applied Ant fix:
  
  http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/tar/TarInputStream.java?r1=1.10&r2=1.11&diff_format=h
  
  Revision  Changes    Path
  1.3       +8 -1      jakarta-commons-sandbox/compress/src/java/org/apache/commons/compress/tar/TarInputStream.java
  
  Index: TarInputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/compress/src/java/org/apache/commons/compress/tar/TarInputStream.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TarInputStream.java	27 Feb 2004 03:41:36 -0000	1.2
  +++ TarInputStream.java	11 Mar 2004 05:30:37 -0000	1.3
  @@ -197,6 +197,13 @@
                   longName.append( str );
               }
               getNextEntry();
  +
  +            // remove trailing null terminator
  +            if (longName.length() > 0
  +                && longName.charAt(longName.length() - 1) == 0) {
  +                longName.deleteCharAt(longName.length() - 1);
  +            }
  +            
               m_currEntry.setName( longName.toString() );
           }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message