Ok, the patch didn't apply cleanly and some missed. Last lost change.

SVN revision: 35887
This commit is contained in:
Cedric BAIL 2008-09-08 11:53:59 +00:00
parent 1b45015b3d
commit facaddde1f
1 changed files with 5 additions and 1 deletions

View File

@ -1267,11 +1267,15 @@ eet_open(const char *file, Eet_File_Mode mode)
}
else
{
int fd;
if (mode != EET_FILE_MODE_WRITE) return NULL;
memset(&file_stat, 0, sizeof(file_stat));
/* opening for write - delete old copy of file right away */
unlink(file);
fp = fopen(file, "wb");
fd = open(file, O_CREAT | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR);
fp = fdopen(fd, "wb");
if (!fp) return NULL;
}
/* We found one */