]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that for windows the module startup is called and sets up
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 8 Aug 2024 14:14:09 +0000 (16:14 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 8 Aug 2024 14:14:09 +0000 (16:14 +0200)
  the module-config.

doc/Changelog
winrc/win_svc.c

index 64d2a77c314fd1319d98ee544f0afba052975fae..510eb6673ae803c8a298789c56767bd88ce452e6 100644 (file)
@@ -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
index a87d73bf126baee9d5610c922262e732f1b573d6..49d4251fa2604c34c7b9f50af547a3c0589b6c82 100644 (file)
@@ -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);