commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [compress] TarArchiveEntry and Windows drive letter
Date Thu, 04 Jan 2018 15:12:29 GMT
On 2018-01-03, Torsten Curdt wrote:

> I just found a new issue with compress.

> It's the "normalizeFileName" in TarArchiveEntry again.
> On Windows it just strips the drive letter

> main/java/org/apache/commons/compress/archivers/tar/

> which I think is a questionable default behaviour IMO.

>    TarArchiveEntry("C:\foo\bar") -> "/foo/bar"
>    TarArchiveEntry("D:\foo\bar") -> "/foo/bar"

"strip the drive letter" predates preserveLeadingSlashes

triggered by

and later

I could be convinced that we should only strip drive letters when we
don't preserve leading slashes either :-)

Usually tar archives do not contain absolute path names at all.

> Is that in line with how other unix tool ports handle things on windows?

No idea, really.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message