Summary: This also fixes the saving of elementary_config file
Test Plan: execution of elementary_config
Reviewers: jptiz, raster
Reviewed By: raster
Subscribers: johnny1337, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D12165
}
}
#ifdef _WIN32
- if (errno == EEXIST)
- {
- struct _stat s;
- _stat(dst, &s);
- if (_S_IFREG & s.st_mode)
+ if (errno == ENOENT)
+ {
+ struct _stat s;
+ _stat(dst, &s);
+ if (_S_IFREG & s.st_mode)
{
ecore_file_unlink(dst);
if (rename(src, dst))
return EINA_TRUE;
}
}
- }
+ }
#endif
goto FAIL;
}