Skip to content

cf-reactor: fix watchers on windows - #6471

Merged
larsewi merged 2 commits into
cfengine:masterfrom
victormlg:cf-reactor-windows-error-messages
Nov 5, 2026
Merged

larsewi merged 2 commits into
cfengine:masterfrom
victormlg:cf-reactor-windows-error-messages

Conversation

@victormlg

@victormlg victormlg commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Merge together: https://github.com/cfengine/enterprise/pull/1029

  • Fixed file owner detection on windows
  • Fixed wrong error message on windows

@victormlg victormlg changed the title cf-reactor. fix watchers on windows cf-reactor: fix watchers on windows Nov 4, 2026
@victormlg
victormlg marked this pull request as ready for review November 4, 2026 13:38
Comment thread cf-reactor/file_watcher.c Resolved
st_uid/st_gid are always 0 on Windows, so the owner SID is compared instead

Signed-off-by: Victor Moene <victor.moene@northern.tech>
LogCheckError() passed errno values to GetErrorStrFromCode(), which on
Windows expects a Windows error code, so the logged reason was wrong.

Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg
victormlg force-pushed the cf-reactor-windows-error-messages branch from c8bb471 to 8820b4f Compare November 5, 2026 07:44
@victormlg
victormlg requested a review from larsewi November 5, 2026 07:44
@larsewi

larsewi commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi
larsewi merged commit 1580121 into cfengine:master Nov 5, 2026
45 of 46 checks passed
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