dd: Illegal seek when doing: dd bs=1 skip=4 if=/sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c of=/tmp/foo
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
uutils dd fails to skip some bytes when reading from the somewhat special efivars filesystem. Says Illegal seek. But not so; this use-case is for skipping the first 4 bytes of metadata, reading out only the actual variable contents. uutils dd ought to obey just as happily as GNU dd when asked to do this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Rust implementation and seek handling for the dd command, then reproduce the command against the efivars SecureBoot path. Compare its output with GNU dd, including skipping the first four bytes. Done means the command no longer reports Illegal seek and writes the expected variable contents to /tmp/foo.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100