#149 closed defect (invalid)
gzip: creates wrong header on FAT file systems
Reported by: | ak120 | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | *none | Version: | |
Severity: | high | Keywords: | |
Cc: |
Description
By using gzip 1.4 to compress a given file on an OS/2 native FAT filesystem a wrong header is written to the resulting gzip compressed file. According to RFC 1952 and gzip documentation the offset 9 should contain the value 0 (00h "FAT filesystem (MS-DOS, OS/2, NT/Win32)") but with the version from netlabs rpm repo it is 6 (06h for HPFS). Using gzip 1.2.4 for DOS (running under OS/2's DOS-window) writes the correct value 0.
I didn't test the behaviour with JFS or VFAT (fat32) filesystems, but I would assume the same issues.
Change History (2)
follow-up: 2 comment:1 by , 8 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 8 years ago
Replying to diver:
according to the rfc https://tools.ietf.org/html/rfc1952 the value of 6 is perfect as well. This code is a fixed value and is set to 0x06 since ages.
Strange, the mentioned document doesn't include your "perfect". And the only "fixed values" from this RFC are the first two bytes.
This will bring us directly to the next problem: a gzip archive created on an OS/2 FAT filesystem can only be created by redirection and only be correctly extracted to the original filename by -N switch.
according to the rfc https://tools.ietf.org/html/rfc1952 the value of 6 is perfect as well. This code is a fixed value and is set to 0x06 since ages.
From the changelog