jaehyun pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=c3709b54350211deb54c3aad5d7cdb137fb4758f
commit c3709b54350211deb54c3aad5d7cdb137fb4758f Author: Jaehyun Cho <[email protected]> Date: Wed Jun 1 22:49:36 2016 +0900 main: Do not overwrite existing EDC with template code. If existing EDC is opened with -t option, then it is not allowed. @fix T3745 --- src/bin/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/main.c b/src/bin/main.c index d90d21c..2320a9f 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -325,6 +325,16 @@ defaults: snprintf(edc_path, path_size, "%s", (const char *)tmp_path); eina_tmpstr_del(tmp_path); } + else + { + //Do not overwrite existing EDC file with template code. + if (*template && ecore_file_exists(edc_path)) + { + EINA_LOG_ERR("\"%s\" already exists! Please input another file " + "name with \"-t\" option.\n", edc_path); + exit(0); + } + } char *s = NULL; EINA_LIST_FREE(id, s) --
