Index: mentor_sch.c =================================================================== --- mentor_sch.c (revision 11534) +++ mentor_sch.c (revision 11535) @@ -41,6 +41,7 @@ #include "hid.h" #include "mentor_sch_conf.h" #include "paths.h" +#include "safe_fs.h" #include "netlist_helper.h" @@ -217,7 +218,7 @@ int c, ret = 0; gsx_parse_res_t res; - fn = fopen(fname_net, "r"); + fn = pcb_fopen(fname_net, "r"); if (fn == NULL) { pcb_message(PCB_MSG_ERROR, "can't open file '%s' for read\n", fname_net); return -1; Index: netlist_helper.c =================================================================== --- netlist_helper.c (revision 11534) +++ netlist_helper.c (revision 11535) @@ -34,6 +34,7 @@ #include "pcb-printf.h" #include "error.h" #include "hid_actions.h" +#include "safe_fs.h" nethlp_ctx_t *nethlp_new(nethlp_ctx_t *prealloc) @@ -158,7 +159,7 @@ int cnt, argc, lineno; char line[1024], *argv[8]; - f = fopen(fn, "r"); + f = pcb_fopen(fn, "r"); if (f == NULL) return -1;