You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2012/07/22 13:09:05 UTC
[Bug 41924] Untar target does not handle long filenames in POSIX tar
files
https://issues.apache.org/bugzilla/show_bug.cgi?id=41924
Sagi <sa...@redbend.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sagi.benakiva@redbend.com
--- Comment #17 from Sagi <sa...@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.