ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 41924] Untar target does not handle long filenames in POSIX tar files
Date Sun, 22 Jul 2012 11:09:05 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=41924

Sagi <sagi.benakiva@redbend.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sagi.benakiva@redbend.com

--- Comment #17 from Sagi <sagi.benakiva@redbend.com> ---
Hi,

I'm suffering from a similar problem, but in my case the file with the long
name is not a regular file but a soft link.
In my case the link name is very long and not the link full path (as in the
Testtar file).

I looked at tar source code and I think that the solution for this issue is not
complete.
Beside the definition for GNUTYPE_LONGNAME, 
there's a definition for GNUTYPE_LONGLINK, i.e. (from tar.h) :
  /* Identifies the *next* file on the tape as having a long linkname.  */
  #define GNUTYPE_LONGLINK 'K'

in my testcase the function TarEntry::isGNULongNameEntry returns FALSE
because linkFlag != LF_GNUTYPE_LONGNAME (linkFlag == (byte)'K')

I even noticed that there's no definition for LF_GNUTYPE_LONGLINK in
TarConstants.java

Thank you,
  Sagi.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message