stefan pushed a commit to branch efl-1.20.

http://git.enlightenment.org/core/efl.git/commit/?id=49a780742bdd7922050c79d4b8a2e77c1239678e

commit 49a780742bdd7922050c79d4b8a2e77c1239678e
Author: Marcel Hollerbach <mar...@osg.samsung.com>
Date:   Tue Apr 10 11:52:49 2018 +0200

    ecore_file: switch from buf to tmpstr
    
    before  c65782b15c0af7c25c5506cdf79cbbfa39604fec 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!
---
 src/lib/ecore_file/ecore_file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c
index f5c15b6e60..a998e3fc9a 100644
--- a/src/lib/ecore_file/ecore_file.c
+++ b/src/lib/ecore_file/ecore_file.c
@@ -495,7 +495,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;

-- 


Reply via email to