AgentD / squashfs-tools-ng

A new set of tools and libraries for working with SquashFS images
Other
194 stars 30 forks source link

Illegal filenames on Windows #124

Closed AgentD closed 4 months ago

AgentD commented 5 months ago

On Windows, some filenames are forbidden, e.g. ones containing characters like : or name/extensions like CON.

Currently, rdsquashfs checks for those when unpacking an archive and refuses to create such entries. According to an e-mail exchange I had recently, there are other programs that work around this by mapping illegal characters into the Unicode Private Use Area (e.g. : = 0x3a becomes 0xf03a). There is also a port of squashfs-tools for Windows floating around that does this transparently. No idea what they do with files named CON, but it sounds like an interesting feature to have, allowing full round tripping on Windows without going through tar and Winrar/7zip.

Here are some thoughts I had so far:

AgentD commented 4 months ago

I have pushed 3 commits to the new 1.3.0 branch, implementing this feature.

Signed test builds from b4d5c76:

squashfs-tools-ng-1.2.0-mingw32.zip squashfs-tools-ng-1.2.0-mingw64.zip

GPG signatures for the archives:

signatures.zip

EDIT: Bump build to newer commit