forked from enlightenment/efl
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:
parent
ef3cce5730
commit
c705139623
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue