typo, should be cfg->pidfile

FYI, on latest trunk. I think it is just a typo :slight_smile:

--- unbound.c 2016-02-04 22:02:47.249598374 +0700
+++ unbound.c+ 2016-02-04 22:03:32.330756783 +0700
@@ -487,7 +487,7 @@
        /* true if pidfile is inside chrootdir, or nochroot */
        pidinchroot = !(cfg->chrootdir && cfg->chrootdir[0]) ||
                                (cfg->chrootdir && cfg->chrootdir[0] &&
- strncmp(daemon->pidfile, cfg->chrootdir,
+ strncmp(cfg->pidfile, cfg->chrootdir,
                                strlen(cfg->chrootdir))==0);
         /* check old pid file before forking */

Regards,

P.Y. Adi Prasaja

Hi Adi,

FYI, on latest trunk. I think it is just a typo :slight_smile:

Thank you, missed that issue! (It is a fix for the code for a fix that
has not been released so only latest trunk was affected).

Best regards, Wouter