ecore_file: switch from buf to tmpstr

before 	c65782b15c the acutal path has
been filled into buf, with eina_file_mkstemp the string is filled into
tmpstr, so that path should be chmoded instead of the template buf.

Thx to MatP for the report!
This commit is contained in:
Marcel Hollerbach 2018-04-10 11:52:49 +02:00
parent ef3cce5730
commit c705139623
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ ecore_file_mv(const char *src, const char *dst)
}
// Set file permissions of temp file to match src
if (chmod(buf, mode) == -1)
if (chmod(tmpstr, mode) == -1)
{
eina_tmpstr_del(tmpstr);
goto FAIL;