15 April 2008: Wouter
- fixup default rc.d pidfile location to /usr/local/etc.
+ - iana ports updated.
+ - copyright updated in ldns-testpkts to keep same as in ldns.
+ - fixup checkconf chroot tests a bit more, chdir must be inside
+ chroot dir.
14 April 2008: Wouter
- got update for parseunbound.pl statistics script from Kai Storbeck.
!is_dir(cfg->chrootdir)) {
fatal_exit("bad chroot directory");
}
- if(cfg->directory && cfg->directory[0] &&
- !is_dir(fname_after_chroot(cfg->directory, cfg, 0))) {
+ if((cfg->chrootdir && cfg->chrootdir[0])
+ && (cfg->directory && cfg->directory[0])
+ && strncmp(cfg->chrootdir, cfg->directory,
+ strlen(cfg->chrootdir)) != 0) {
+ fatal_exit("chdir directory '%s' not inside the chroot "
+ "directory '%s'", cfg->directory, cfg->chrootdir);
+ }
+ if(cfg->directory && cfg->directory[0] && !is_dir(cfg->directory)) {
fatal_exit("bad chdir directory");
}
if( (cfg->chrootdir && cfg->chrootdir[0]) ||