Skip to content

strip errno when argument is not a directory but an existing file - #13890

Merged
sylvestre merged 4 commits into
uutils:mainfrom
Devel08:fix-issue-13888
Aug 13, 2026
Merged

strip errno when argument is not a directory but an existing file#13890
sylvestre merged 4 commits into
uutils:mainfrom
Devel08:fix-issue-13888

Conversation

@Devel08

@Devel08 Devel08 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

closes #13888

Comment thread src/uu/pathchk/src/pathchk.rs Outdated
writeln!(
std::io::stderr(),
"{}",
format_args!("pathchk: {}: {}", path, uucore::error::strip_errno(&e))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codspeed-hq

codspeed-hq Bot commented Aug 12, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 3.69%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 2 improved benchmarks
❌ 1 regressed benchmark
✅ 344 untouched benchmarks
⏩ 46 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation df_with_path 573.7 µs 704.6 µs -18.58%
Simulation du_max_depth_balanced_tree[(6, 4, 10)] 65.2 ms 62.2 ms +4.83%
Simulation du_summarize_balanced_tree[(5, 4, 10)] 16.8 ms 16 ms +4.67%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing Devel08:fix-issue-13888 (73a3d7c) with main (822aa83)

Open in CodSpeed

Footnotes

  1. 46 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.

Comment thread src/uu/pathchk/src/pathchk.rs Outdated
"{}",
format_args!("pathchk: {}: {}", path, uucore::error::strip_errno(&e))
);
uucore::show_error!("{}: {}", path, uucore::error::strip_errno(&e));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use the import for both, don't declare uucore:

@sylvestre
sylvestre merged commit e4a7604 into uutils:main Aug 13, 2026
163 of 166 checks passed
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.

minorbug(pathchk): os errno not stripped

2 participants