rm: use "traversal failed" message when readdir fails during recursive removal#11427
Closed
kevinburkesegment wants to merge 264 commits intouutils:mainfrom
Closed
rm: use "traversal failed" message when readdir fails during recursive removal#11427kevinburkesegment wants to merge 264 commits intouutils:mainfrom
kevinburkesegment wants to merge 264 commits intouutils:mainfrom
Conversation
15ad1ee to
ed919a4
Compare
Contributor
|
sorry but could you please add a test to cover this case ? |
Switch to unstable sorting as it is in-place, and remove an unnecessary string conversion.
Also switches to var_os for alloc-free code.
Remove format machinery, an unnecessary allocation and a duplicated function.
Should improve codegen, especially in debug mode.
Renames and documents PathDataDisplayName::Moo to _::Custom; also makes code more idiomatic and restores an accidentally-removed warning. Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com> Co-authored-by: xtqqczze <45661989+xtqqczze@users.noreply.github.com>
…uutils#11673) * dd: do not show zero multiplier warning when zero is the multiplicand * tests/dd: test zero multiplier warning when zero is the multiplicand
…uffix and fixed String format (uutils#11674) * numfmt: preserve fractional digits when --from-unit is used without suffix and fixed String format * numfmt: simplify redundant if branches caught by clippy * numfmt: fix precision condition to only preserve decimals when input has no unit suffix
Formats like "%-e" previously bypassed ICU localization of "%b"/"%A" because the modifier fast-path ran before localize_format_string(). Localize first, then run the modifier pass on the already-localized format. Fixes uutils#11240.
46290b9 to
198f365
Compare
|
GNU testsuite comparison: |
198f365 to
713aeb6
Compare
…e removal Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
713aeb6 to
1bfbb9b
Compare
Contributor
|
please reopen when it is ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When readdir fails mid-traversal (e.g., due to I/O errors), GNU rm reports "traversal failed:
" rather than "cannot remove ''". Update the error handling in safe_remove_dir_recursive_impl to match this behavior.Fixes GNU test: tests/rm/rm-readdir-fail.sh