Index: trunk/src/main.c =================================================================== --- trunk/src/main.c (revision 34909) +++ trunk/src/main.c (revision 34910) @@ -101,12 +101,12 @@ /* new exists: use it */ new_path = rnd_concat(dir, new_name, NULL); - if (rnd_file_readable(new_path)) + if (rnd_file_readable(NULL, new_path)) return new_path; /* new doesn't exist, old does; use the old and warn the user */ old_path = rnd_concat(dir, old_name, NULL); - if (rnd_file_readable(old_path)) { + if (rnd_file_readable(NULL, old_path)) { rnd_message(RND_MSG_ERROR, "Using old (pre-3.0.0) config file name for compatibility\nPlease quit and rename %s to %s\n", old_path, new_path); free(new_path); return old_path; Index: trunk/src/plug_import.c =================================================================== --- trunk/src/plug_import.c (revision 34909) +++ trunk/src/plug_import.c (revision 34910) @@ -105,7 +105,7 @@ { pcb_plug_import_t *plug; - if (!rnd_file_readable(filename)) { + if (!rnd_file_readable(hidlib, filename)) { rnd_message(RND_MSG_ERROR, "Error: can't find a suitable netlist parser for %s - might be related: can't open %s for reading\n", filename, filename); return 1; } Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 34909) +++ trunk/src/plug_io.c (revision 34910) @@ -978,7 +978,7 @@ /* for askovr, do not make a backup copy - if the user explicitly says overwrite, just overwrite */ if (!askovr) - overwrite = rnd_file_readable(Filename); + overwrite = rnd_file_readable(NULL, Filename); if (overwrite) { int len = strlen(Filename); Index: trunk/src_plugins/export_oldconn/oldconn.c =================================================================== --- trunk/src_plugins/export_oldconn/oldconn.c (revision 34909) +++ trunk/src_plugins/export_oldconn/oldconn.c (revision 34910) @@ -242,7 +242,7 @@ char message[RND_PATH_MAX + 80]; int response; - if (rnd_file_readable(Filename)) { + if (rnd_file_readable(&PCB->hidlib, Filename)) { sprintf(message, "File '%s' exists, use anyway?", Filename); response = rnd_hid_message_box(&PCB->hidlib, "warning", "Overwrite file", message, "cancel", 0, "ok", 1, NULL); if (response != 1) Index: trunk/src_plugins/import_ltspice/ltspice.c =================================================================== --- trunk/src_plugins/import_ltspice/ltspice.c (revision 34909) +++ trunk/src_plugins/import_ltspice/ltspice.c (revision 34910) @@ -336,7 +336,7 @@ return 0; /* only pure netlist import is supported */ gen_filenames(args[0], &fname_net, &fname_asc); - if (!rnd_file_readable(fname_net)) + if (!rnd_file_readable(&PCB->hidlib, fname_net)) goto quit; f = rnd_fopen(&PCB->hidlib, fname_asc, "r"); Index: trunk/util/gsch2pcb-rnd/gsch2pcb.c =================================================================== --- trunk/util/gsch2pcb-rnd/gsch2pcb.c (revision 34909) +++ trunk/util/gsch2pcb-rnd/gsch2pcb.c (revision 34910) @@ -371,7 +371,7 @@ void require_gnetlist_backend(const char *dir, const char *backend) { char *path = rnd_strdup_printf("%s/gnet-%s.scm", dir, backend); - if (!rnd_file_readable(path)) + if (!rnd_file_readable_(path)) rnd_message(RND_MSG_WARNING, "WARNING: %s is not found, gnetlist will probably fail; please check your pcb-rnd installation!\n", path); free(path); } @@ -422,7 +422,7 @@ rnd_conf_update(NULL, -1); /* because of CLI changes */ if (!have_cli_project_file && !have_cli_schematics) { - if (!rnd_file_readable(LOCAL_PROJECT_FILE)) { + if (!rnd_file_readable_(LOCAL_PROJECT_FILE)) { rnd_message(RND_MSG_ERROR, "Don't know what to do: no project or schematics given, no local project file %s found. Try %s --help\n", LOCAL_PROJECT_FILE, argv[0]); exit(1); } Index: trunk/util/gsch2pcb-rnd/method_import.c =================================================================== --- trunk/util/gsch2pcb-rnd/method_import.c (revision 34909) +++ trunk/util/gsch2pcb-rnd/method_import.c (revision 34910) @@ -105,11 +105,11 @@ char *name; name = rnd_concat(conf_g2pr.utils.gsch2pcb_rnd.sch_basename, ".lht", NULL); - res = rnd_file_readable(name); + res = rnd_file_readable_(name); free(name); if (!res) { name = rnd_concat(conf_g2pr.utils.gsch2pcb_rnd.sch_basename, ".pcb.lht", NULL); - res = rnd_file_readable(name); + res = rnd_file_readable_(name); free(name); } return res;