write mapfile even if it already exists

This commit is contained in:
Laurent Vivier 2005-12-02 00:37:36 +00:00
parent 3f843ab7cd
commit 4ab2d93ced

View File

@ -51,7 +51,7 @@ struct emile_container *emile_second_create_mapfile(short *unit_id, char *mapfil
/* write container to map file */
fd = open(mapfile, O_CREAT | O_EXCL | O_WRONLY);
fd = open(mapfile, O_CREAT | O_WRONLY);
if (fd == -1)
{
fprintf(stderr, "ERROR: cannot create map file (%s)\n", mapfile);