jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=4e82a3e7cad87e1543278cbb09703731e8e0504a

commit 4e82a3e7cad87e1543278cbb09703731e8e0504a
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Thu Sep 24 10:03:12 2015 +0900

    config_data: Fix to set random output file name.
    
    Currently, output file name is the same as input file name.
    This causes an issue when input files which have same names are opened
    at the same time.
    To resolve the above issue, output file names are set randomly.
---
 src/bin/config_data.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/config_data.c b/src/bin/config_data.c
index 6d5bc32..51f53e0 100644
--- a/src/bin/config_data.c
+++ b/src/bin/config_data.c
@@ -56,10 +56,10 @@ config_edj_path_update(config_data *cd)
      {
         char filename[PATH_MAX];
         snprintf(filename, (ext - file) + 1, "%s", file);
-        snprintf(buf, sizeof(buf), "%s.edj", filename);
+        snprintf(buf, sizeof(buf), "%s_XXXXXX.edj", filename);
      }
    else
-     snprintf(buf, sizeof(buf), "%s.edj", file);
+     snprintf(buf, sizeof(buf), "%s_XXXXXX.edj", file);
 
    if (!eina_file_mkstemp(buf, &tmp_path))
      {

-- 


Reply via email to