Skip to content

Do not walk a socket or block device as a directory, and re-vendor qnxprobe 1.34 - #250

Merged
abrignoni merged 3 commits into
mainfrom
fix/raw-image-directory-test
Sep 25, 2026
Merged

abrignoni merged 3 commits into
mainfrom
fix/raw-image-directory-test

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Two commits:

  • The raw-image seeker treated a socket (0o140000) or block device (0o060000) as a directory, because it tested mode & S_IFDIR alone. It now tests the format bits, as qnxprobe does. On the public macOS Big Sur acquisition this removes 47 sockets listed as directories under private/var; the member lists of five other public acquisitions are unchanged. New test fails on the old line.
  • Re-vendors qnxprobe 1.34, which gives a zstd SquashFS on a Python without zstd a note saying why it lists nothing. The seeker prints it on the volume's line, and raw_image_input.md now says so.

🤖 Generated with Claude Code

abrignoni and others added 3 commits September 25, 2026 16:02
…seeker

The seeker decided a directory with `mode & S_IFDIR`. S_IFDIR is 0o040000,
and a socket (0o140000) and a block device (0o060000) carry that bit too, so
both were listed as directories and walked into. On the public macOS Big Sur
acquisition that was 47 sockets under private/var. It now tests the format
bits, `mode & S_IFMT == S_IFDIR`, as the vendored qnxprobe does.

The new test gives the seeker a socket and a block device that each claim a
child, and requires neither to be listed or walked. It fails on the old line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nothing

On a Python without zstd, qnxprobe 1.34 carries the reason as the volume's
note, and this seeker prints a volume's note on its line in the run log. The
raw-image doc said the log gave no reason; it now says the log names it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The seeker's walk never reads a file, and its unused arguments were two new
pylint warnings in the lint gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit 747a442 into main Sep 25, 2026
9 checks passed
@abrignoni
abrignoni deleted the fix/raw-image-directory-test branch September 25, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant