Skip to content

Conversation

@cerdelen
Copy link
Contributor

@cerdelen cerdelen commented Jan 2, 2026

When chmod recursively walks dirs it was keeping the fd's open. Now it will buffer all paths of a directory in a vec and then walks these after closing the fd.

Note: I was only able to create a nested dir in the testing framework of a depth of 400 (if i try a deeper dir structure mkdir_all() fails with 'Filename too long'). If anyone can give me tips how to extend the depth to 30k like in the issue i am happy to extend the test.

Fixes: #9778

@sylvestre sylvestre merged commit d28cb30 into uutils:main Jan 3, 2026
128 of 129 checks passed
sgmarz pushed a commit to sgmarz/coreutils that referenced this pull request Jan 7, 2026
…sted_dirs

Chmod recursive hyper nested dirs
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: chmod -R hyper nested dirs fails

2 participants