Skip to content

checksum: report failed open for empty file name in checksum file - #16271

Merged
cakebaker merged 1 commit into
uutils:mainfrom
eduardomourar:wasi-p1/cksum-empty-path
Nov 12, 2026
Merged

cakebaker merged 1 commit into
uutils:mainfrom
eduardomourar:wasi-p1/cksum-empty-path

Conversation

@eduardomourar

Copy link
Copy Markdown
Contributor

On WASI, an empty path resolves to the preopened directory instead of failing with ENOENT. Check for it explicitly and report the usual "No such file or directory" error.

@eduardomourar
eduardomourar force-pushed the wasi-p1/cksum-empty-path branch from 2fa8df8 to ec6966c Compare November 7, 2026 16:47
@eduardomourar eduardomourar changed the title checksum: report a failed open for an empty file name in a checksum file checksum: report failed open for empty file name in checksum file Nov 7, 2026
@codspeed

codspeed Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning, 1 note

⚠️ 125 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

ℹ️ 1 benchmark has no flamegraph

The flamegraph wasn't generated: most of the time was spent in runtime internals, which would leave nothing useful to analyze.

See affected benchmarks

✅ 401 untouched benchmarks
🆕 4 new benchmarks
⏩ 70 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
🆕 Memory base58_decode N/A 381.8 KB N/A
🆕 Memory base58_encode N/A 201.2 KB N/A
🆕 CPU Simulation base58_decode N/A 2.1 s N/A
🆕 CPU Simulation base58_encode N/A 1.1 s N/A

Comparing eduardomourar:wasi-p1/cksum-empty-path (ba5253f) with main (fabdca4)2

Open in CodSpeed

Footnotes

  1. 70 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (6b69e92) during the generation of this report, so fabdca4 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@sylvestre
sylvestre force-pushed the wasi-p1/cksum-empty-path branch from ec6966c to ba5253f Compare November 8, 2026 10:49
@eduardomourar

Copy link
Copy Markdown
Contributor Author

/rerun CICD

@cakebaker
cakebaker merged commit de292ae into uutils:main Nov 12, 2026
270 of 276 checks passed
@cakebaker

Copy link
Copy Markdown
Contributor

Thanks!

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.

2 participants