Skip to content

Conversation

@cerdelen
Copy link
Contributor

@cerdelen cerdelen commented Jan 3, 2026

Previously the --preserve-root flag could be bypassed because it was only compared to "/" so anyhting that resolved to root but wasn't literally "/" would not be caught.

Also added regression test.

Fixes: #10018

@sylvestre sylvestre merged commit 413055b into uutils:main Jan 7, 2026
131 checks passed
sgmarz pushed a commit to sgmarz/coreutils that referenced this pull request Jan 7, 2026
* chmod: Fix --preserve-root not being bypassed by path that resolves to root

* chmod: Regression tests for --preserve-root not being bypassed by path that resolves to root
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.

chmod: --preserve-root can be bypassed with any directory that resolves to root

2 participants