Index: eps.c =================================================================== --- eps.c (revision 27072) +++ eps.c (revision 27073) @@ -333,7 +333,7 @@ filename = "pcb-out.eps"; if (eps_cam.fn_template == NULL) { - f = pcb_fopen(&PCB->hidlib, eps_cam.active ? eps_cam.fn : filename, "w"); + f = pcb_fopen_askovr(&PCB->hidlib, eps_cam.active ? eps_cam.fn : filename, "w", NULL); if (!f) { perror(filename); return; @@ -379,7 +379,7 @@ eps_print_footer(f); fclose(f); } - f = pcb_fopen(&PCB->hidlib, eps_cam.fn, "w"); + f = pcb_fopen_askovr(&PCB->hidlib, eps_cam.fn, "w", NULL); eps_print_header(f, eps_cam.fn); } Index: ps.c =================================================================== --- ps.c (revision 27072) +++ ps.c (revision 27073) @@ -337,6 +337,7 @@ pcb_bool is_paste; pcb_composite_op_t drawing_mode; + int ovr_all; } global; static pcb_export_opt_t *ps_get_export_options(pcb_hid_t *hid, int *n) @@ -500,7 +501,7 @@ return NULL; if (!global.multi_file) - return pcb_fopen(&PCB->hidlib, base, "w"); + return pcb_fopen_askovr(&PCB->hidlib, base, "w", NULL); buf = (char *) malloc(strlen(base) + strlen(which) + 5); @@ -513,7 +514,7 @@ else { sprintf(buf, "%s.%s.ps", base, which); } - ps_open_file = pcb_fopen(&PCB->hidlib, buf, "w"); + ps_open_file = pcb_fopen_askovr(&PCB->hidlib, buf, "w", &global.ovr_all); free(buf); return ps_open_file; } @@ -612,6 +613,8 @@ int save_ons[PCB_MAX_LAYER]; int i; + global.ovr_all = 0; + if (!options) { ps_get_export_options(hid, 0); for (i = 0; i < NUM_OPTIONS; i++)