Index: trunk/src/Makefile.dep =================================================================== --- trunk/src/Makefile.dep (revision 11522) +++ trunk/src/Makefile.dep (revision 11523) @@ -6186,7 +6186,8 @@ ../src_3rd/genlist/gendlist.h globalconst.h plugins.h \ ../src_3rd/puplug/puplug.h ../src_3rd/puplug/libs.h \ ../src_3rd/puplug/os_dep.h ../src_3rd/puplug/config.h \ - ../src_3rd/puplug/libs.h ../src_3rd/puplug/error.h plug_import.h error.h + ../src_3rd/puplug/libs.h ../src_3rd/puplug/error.h plug_import.h error.h \ + safe_fs.h plug_io.o: plug_io.c ../config.h conf_core.h conf.h global_typedefs.h \ pcb_bool.h unit.h pcb-printf.h ../src_3rd/genvector/gds_char.h \ ../src_3rd/genvector/genvector_impl.h \ Index: trunk/src/plug_import.c =================================================================== --- trunk/src/plug_import.c (revision 11522) +++ trunk/src/plug_import.c (revision 11523) @@ -39,6 +39,7 @@ #include "plugins.h" #include "plug_import.h" #include "error.h" +#include "safe_fs.h" pcb_plug_import_t *pcb_plug_import_chain = NULL; @@ -92,7 +93,7 @@ pcb_message(PCB_MSG_ERROR, "Error: need a file name for pcb_import_netlist()\n"); return (1); /* nothing to do */ } - fp = fopen(filename, "r"); + fp = pcb_fopen(filename, "r"); plug = find_importer(aspect, fp, filename); if (plug == NULL) {