-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: Expand safe directory traversal to all Unix platforms and fix related type conversions. #9792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
abendrothj
wants to merge
37
commits into
uutils:main
Choose a base branch
from
abendrothj:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+240
−120
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
c9d6f81
feat: Expand safe directory traversal to all Unix platforms and fix r…
abendrothj 9cd62b3
fix: Fix type conversion errors and add TOCTOU to dictionary
abendrothj f1c7082
Merge branch 'main' of https://github.com/uutils/coreutils into main
abendrothj 1c06851
Merge branch 'main' into main
abendrothj e1d5465
fix: Fix macOS/BSD build failures and test compatibility
abendrothj cfbf666
Merge branch 'main' into main
abendrothj 9445537
fix: Add cross-platform type handling in safe_traversal
abendrothj 959d39d
Merge branch 'main' into main
abendrothj d8348c5
fix: That should be all the casts ignored by clippy (were showing as …
abendrothj 4f65a77
fix: Suppress unnecessary cast warnings in cp and du modules
abendrothj 3cb2071
fix: Ensure proper type handling for mode_t in rm and safe_traversal …
abendrothj 29a04c0
Merge branch 'main' into main
abendrothj e326036
fix: Improve code formatting for readability in safe_remove_dir_recur…
abendrothj ee18c58
fix(unix,redox): platform compatibility
abendrothj c8cc10c
fix: Use type inference for mode checks in prompt_file_with_stat and …
abendrothj 05d675b
fix(android): handle symlink and directory checks with appropriate ty…
abendrothj 0f48443
fix(redox): improve error handling for unsupported safe traversal ope…
abendrothj e6a9637
fix(unix): simplify symlink and directory checks for improved readabi…
abendrothj 5704355
test(date): Relax locale format assertions to support variable CI env…
abendrothj e4f13ef
fix(uucore): gate unix-specific safe_traversal methods for redox
abendrothj 827556a
fix(redox): gate Metadata and nix-dependent methods for Redox compati…
abendrothj d946a9d
Merge branch 'main' into main
abendrothj 9f41965
fix(redox): move libc import under the correct conditional compilation
abendrothj b0803a5
Merge branch 'main' into main
sylvestre 262b53b
Merge branch 'main' into main
abendrothj 78cbd9a
Refactor conditional compilation for Unix-specific features to exclud…
abendrothj ea5ad61
Remove Redox-specific exclusion code from safe_traversal module
abendrothj df5f26a
Exclude Redox from safe_traversal feature for Unix compatibility
abendrothj 3e0c411
Merge branch 'main' into main
abendrothj 2102a85
rm: add Redox-specific stub implementations for safe traversal
abendrothj 370107e
rm: add spell-checker directive for fstatat in Redox stub implementat…
abendrothj b6c20a8
chmod, du: exclude Redox from safe-traversal feature
abendrothj 5cc0c65
cargo: fix formatting of uucore dependencies in Cargo.toml
abendrothj 1fc7d18
Merge branch 'main' into main
abendrothj 44950a2
Merge branch 'main' into main
abendrothj b135427
Merge branch 'main' into main
abendrothj fe8ab05
test(chmod): improve error message handling for permission denied cases
abendrothj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems to be duplicated code