Index: loader/win32.c =================================================================== --- loader/win32.c (revision 28461) +++ loader/win32.c @@ -56,7 +56,11 @@ #ifdef HAVE_MALLOC_H #include #endif + #include +#include +#include + #include #include #include @@ -3519,7 +3523,7 @@ free(tmp); return result; } - if (strstr(cs1, "vp3")) + if (strstr(cs1, "vp3") || strstr(cs1, ".fpf")) { int r; int flg = 0; @@ -3537,10 +3541,10 @@ flg |= O_RDONLY; else if (GENERIC_WRITE & i1) { - flg |= O_WRONLY; + flg |= O_WRONLY | O_CREAT; printf("Warning: openning filename %s %d (flags; 0x%x) for write\n", tmp, r, flg); } - r=open(tmp, flg); + r=open(tmp, flg, S_IRWXU); free(tmp); return r; }