View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000685 | file | General | public | 2025-10-17 08:27 | 2025-10-22 19:32 |
| Reporter | tigrankhachikyan | Assigned To | christos | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 5.46 | ||||
| Fixed in Version | HEAD | ||||
| Summary | 0000685: ZIP detection from stdin still broken in HEAD (PR/622 fix incomplete) | ||||
| Description | I tested the HEAD version (commit 5a089c72) which includes the fix from PR/622 (commit 08ab5f64), and stdin detection is still broken for ZIP files. | ||||
| Steps To Reproduce | echo "test" > test.txt zip test.zip test.txt # Test with built HEAD version ./file -b --mime-type test.zip # Returns: application/zip (correct) cat test.zip | ./file -b --mime-type - # Returns: application/octet-stream (still broken!) | ||||
| Additional Information | Environment: - Built from HEAD (5a089c72) - Includes fix: 08ab5f64 "Handle negative offsets in file_buffer(), when fd is not available" - Platform: Debian Trixie (x86_64) The fix from PR/622 appears to be incomplete. The issue persists when piping ZIP files through stdin. For comparison, libmagic 5.44 (Debian Bookworm) correctly detects ZIP files from stdin: ```bash # libmagic 5.44 cat test.zip | file -b --mime-type - # Returns: application/zip (correct) ``` | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-10-17 08:27 | tigrankhachikyan | New Issue | |
| 2025-10-22 19:32 | christos | Assigned To | => christos |
| 2025-10-22 19:32 | christos | Status | new => resolved |
| 2025-10-22 19:32 | christos | Resolution | open => fixed |
| 2025-10-22 19:32 | christos | Fixed in Version | => HEAD |
| 2025-10-22 19:32 | christos | Note Added: 0004304 |