Skip to content

Restore log modes after ownership during rotation - #175

Open
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/restore-rotation-mode
Open

Restore log modes after ownership during rotation#175
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/restore-rotation-mode

Conversation

@OskarEichler

Copy link
Copy Markdown

Changing ownership can clear setuid/setgid mode bits on common filesystems, but rotation currently applies chmod before chown. Apply ownership first and restore the captured mode afterward, including the existing EPERM fallback, so special mode bits survive successful rotation. This is a corrective follow-up to merged #122. Current suites pass 64 tests / 323 assertions on Ruby 4.0.6 and 3.2.11; focused mode/ownership models pass. No repository tests were changed.

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.

1 participant