Index: edakrill.c =================================================================== --- edakrill.c (revision 11553) +++ edakrill.c (revision 11554) @@ -10,6 +10,7 @@ #include "plugins.h" #include "plug_footprint.h" #include "compat_misc.h" +#include "safe_fs.h" #define REQUIRE_PATH_PREFIX "wget@edakrill" @@ -138,7 +139,7 @@ if (md5_new == NULL) goto err; - f = fopen(last_sum_fn, "r"); + f = pcb_fopen(last_sum_fn, "r"); md5_last = load_md5_sum(f); if (f != NULL) fclose(f); Index: gedasymbols.c =================================================================== --- gedasymbols.c (revision 11553) +++ gedasymbols.c (revision 11554) @@ -10,6 +10,7 @@ #include "plugins.h" #include "plug_footprint.h" #include "compat_misc.h" +#include "safe_fs.h" #define REQUIRE_PATH_PREFIX "wget@gedasymbols" @@ -58,7 +59,7 @@ if (md5_new == NULL) goto err; - f = fopen(last_sum_fn, "r"); + f = pcb_fopen(last_sum_fn, "r"); md5_last = load_md5_sum(f); if (f != NULL) fclose(f); Index: wget_common.c =================================================================== --- wget_common.c (revision 11553) +++ wget_common.c (revision 11554) @@ -9,6 +9,7 @@ #include "config.h" #include "wget_common.h" #include "compat_misc.h" +#include "safe_fs.h" enum { FCTX_INVALID = 0, @@ -77,7 +78,7 @@ } if (f != NULL) { sprintf(cmd, "%s/%s", cache_path, cdir); - *f = fopen(cmd, "r"); + *f = pcb_fopen(cmd, "r"); if (*f == NULL) goto error; *fctx = FCTX_FOPEN; @@ -146,7 +147,7 @@ if ((md5_last == NULL) || (strcmp(md5_last, md5_new) != 0)) { FILE *f; - f = fopen(last_fn, "w"); + f = pcb_fopen(last_fn, "w"); fputs(md5_new, f); fclose(f); changed = 1;