Skip to content

ENT-13179: Fixed bug where immutable bit is flipped between agent runs#5860

Merged
larsewi merged 2 commits into
cfengine:masterfrom
larsewi:bit-flip
Aug 21, 2025
Merged

ENT-13179: Fixed bug where immutable bit is flipped between agent runs#5860
larsewi merged 2 commits into
cfengine:masterfrom
larsewi:bit-flip

Conversation

@larsewi

@larsewi larsewi commented Aug 21, 2025

Copy link
Copy Markdown
Contributor
  • Fixed bug where rename fails to reset temporarily cleared immutable bit
  • Added missing record changes/failures to when flipping the immutable bit

The problem was that it tried to reset the immutable bit status of the
old file, instead of the new file after calling rename(). The old file
obviously is not immutable because it is the temporary file that we want
to replace the original file with after e.g., rendering its contents.

Ticket: ENT-13179
Changelog: Title
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Ticket: ENT-13179
Changelog: Title
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi

larsewi commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@larsewi larsewi marked this pull request as ready for review August 21, 2025 13:34
@cf-bottom

Copy link
Copy Markdown

@larsewi larsewi merged commit 559fcf4 into cfengine:master Aug 21, 2025
38 of 40 checks passed
@larsewi larsewi deleted the bit-flip branch October 2, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants