View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000395 | file | General | public | 2022-10-14 12:34 | 2022-10-16 13:00 |
Reporter | saltedcoffii | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x86_64 | OS | Arch Linux | OS Version | rolling |
Product Version | 5.43 | ||||
Fixed in Version | 5.44 | ||||
Summary | 0000395: no magic for .tar.bz3 and .bz3 files | ||||
Description | .tar.bz3 and .bz3 files created by the bzip3 utility are reported as “data” and “application/octet-stream”. They should proabably show up similarly to the .tar.bz2 and .bz2 files, e.g., “bzip3 compressed data, block size = <>" and “application/x-bzip3” | ||||
Steps To Reproduce | 1. Compress a file using the bzip3 utility (or use the random data file provided) 2a. Read the file using `file <>.bz3` 2b. and `file --mime-type <>.bz3` | ||||
Additional Information | External links: https://github.com/kspalaiologos/bzip3 https://aur.archlinux.org/packages/bzip3 https://pkgs.alpinelinux.org/package/edge/testing/x86_64/bzip3 | ||||
Tags | compression, magic | ||||
|
|
|
I realized that to find magic bytes, multiple files are required to compare and not all developers may have access to a compiled bzip3 yet. Here is a statically linked bzip3 v1.1.6 (latest version at the time of writing) for x86_64, and some files that have been randomly generated with `base64 /dev/random | head -c 10000` and compressed with `bzip3` and `tar`/`bzip3`. Also, how do developers find magic bytes? I work with file a lot, so I'm sure I could help if I knew how to find magic bytes for unsupported files. Let me know! |
|
Added, thanks! |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-10-14 12:34 | saltedcoffii | New Issue | |
2022-10-14 12:34 | saltedcoffii | Tag Attached: compression | |
2022-10-14 12:34 | saltedcoffii | Tag Attached: magic | |
2022-10-14 12:34 | saltedcoffii | File Added: foo.bz3 | |
2022-10-16 12:21 | saltedcoffii | Note Added: 0003835 | |
2022-10-16 12:21 | saltedcoffii | File Added: 16.10.22-file-issue-0000395-files-to-help-devs.tar.gz | |
2022-10-16 12:59 | christos | Assigned To | => christos |
2022-10-16 12:59 | christos | Status | new => assigned |
2022-10-16 13:00 | christos | Status | assigned => resolved |
2022-10-16 13:00 | christos | Resolution | open => fixed |
2022-10-16 13:00 | christos | Fixed in Version | => 5.44 |
2022-10-16 13:00 | christos | Note Added: 0003836 |