Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:6272:    foreach(dirs, dir) {    array(string) rdirs;    if (has_prefix(dir, "/")) {    // Absolute path.    rdirs = ({ "/" });    } else {    // lopen path    rdirs = map(roxenloader.package_directories, roxen_path);    }    foreach(rdirs, string rdir) { -  foreach(glob(base, get_dir(combine_path(rdir, dir)) || ({})), -  string fname) { +  array(string) paths = get_dir(combine_path(rdir, dir)); +  if (!paths) {   #ifdef SSL3_DEBUG -  +  if (errno() != System.ENOENT) { +  werror("Reading PEM dir %O failed: %s\n", +  combine_path(rdir, dir), strerror(errno())); +  } + #endif +  continue; +  } +  foreach(glob(base, paths), string fname) { + #ifdef SSL3_DEBUG    werror("Found PEM file %O, matching %O.\n",    Stdio.append_path(dir, fname), glob_pattern);   #endif    CertDB.register_pem_file(Stdio.append_path(dir, fname));    }    }    }    }    CertDB.refresh_all_pem_files(force);   }