Skip to content

chmod: do not check umask on skipped symlinks during recursion - #14512

Merged
sylvestre merged 1 commit into
uutils:mainfrom
okaythi:fix/chmod-recursive-symlink-umask
Sep 14, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
okaythi:fix/chmod-recursive-symlink-umask

Conversation

@okaythi

@okaythi okaythi commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

When running chmod -R -w, skipped symlinks fell through to the umask validation check and triggered a bogus new permissions are ... error.

Fixed by returning early with Ok(()) when skipping symlinks reached without dereferencing in chmod_file_internal.

Fixes Ubuntu Launchpad bug #2167122.

Copilot AI lite review requested due to automatic review settings September 12, 2026 07:20

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@okaythi
okaythi force-pushed the fix/chmod-recursive-symlink-umask branch from 2e59b48 to dbc75f3 Compare September 12, 2026 08:53
Copilot AI review requested due to automatic review settings September 12, 2026 08:53

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Sep 12, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/pr/bounded-memory (passes in this run but fails in the 'main' branch)

@sylvestre
sylvestre merged commit cd43443 into uutils:main Sep 14, 2026
101 of 102 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks

@okaythi
okaythi deleted the fix/chmod-recursive-symlink-umask branch September 14, 2026 11:25
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.

3 participants