From 5abdd09095171d7afdc6ae1f017f3391663c25a8 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 8 Aug 2024 16:14:09 +0200 Subject: [PATCH] - Fix that for windows the module startup is called and sets up the module-config. --- doc/Changelog | 2 ++ winrc/win_svc.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 64d2a77c3..510eb6673 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -5,6 +5,8 @@ Anat Bremler-Barr, Shoham Danino and Yuval Shavitt (Tel-Aviv University and Reichman University). - Set version number to 1.21.0 for release. + - Fix that for windows the module startup is called and sets up + the module-config. 2 August 2024: Wouter - Fix that alloc stats has strdup checks, it stops debuggers from diff --git a/winrc/win_svc.c b/winrc/win_svc.c index a87d73bf1..49d4251fa 100644 --- a/winrc/win_svc.c +++ b/winrc/win_svc.c @@ -352,6 +352,10 @@ service_init(int r, struct daemon** d, struct config_file** c) daemon_apply_cfg(daemon, cfg); if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2300); + if(!r) { + if(!daemon_privileged(daemon)) + fatal_exit("could not do privileged setup"); + } if(!(daemon->rc = daemon_remote_create(cfg))) { log_err("could not set up remote-control"); daemon_delete(daemon);