commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@vafer.org>
Subject [compress] TarArchiveEntry and Windows drive letter
Date Wed, 03 Jan 2018 15:46:55 GMT
I just found a new issue with compress.

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

https://github.com/apache/commons-compress/blob/master/src/
main/java/org/apache/commons/compress/archivers/tar/
TarArchiveEntry.java#L1337

which I think is a questionable default behaviour IMO.

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

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

cheers,
Torsten

PS: Just for you sebb ;)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message