summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2018-04-10 11:52:49 +0200
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-04-10 14:27:44 +0200
commitc705139623cd01b80a5daee1b14f1daea9e22e65 (patch)
tree1fbfb7e13dacbc8cd8f7b99e393399cf99177e95 /src/lib/ecore_file
parentef3cce57308971cc555c2cbd51c87a9ca01d3294 (diff)
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!
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r--src/lib/ecore_file/ecore_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c
index 89b6f2b373..4780350de0 100644
--- a/src/lib/ecore_file/ecore_file.c
+++ b/src/lib/ecore_file/ecore_file.c
@@ -487,7 +487,7 @@ ecore_file_mv(const char *src, const char *dst)
487 } 487 }
488 488
489 // Set file permissions of temp file to match src 489 // Set file permissions of temp file to match src
490 if (chmod(buf, mode) == -1) 490 if (chmod(tmpstr, mode) == -1)
491 { 491 {
492 eina_tmpstr_del(tmpstr); 492 eina_tmpstr_del(tmpstr);
493 goto FAIL; 493 goto FAIL;