rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=e3b16a1c567a81970be3e61de7a7759203bbe5ec

commit e3b16a1c567a81970be3e61de7a7759203bbe5ec
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Wed Sep 21 18:24:03 2016 +0300

    Project manager: check success of change mode for generated script.
    
    @svace WGID 464467
    @fix
---
 src/bin/project_manager/project_manager.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/project_manager/project_manager.c 
b/src/bin/project_manager/project_manager.c
index 52a1073..f80a1e9 100644
--- a/src/bin/project_manager/project_manager.c
+++ b/src/bin/project_manager/project_manager.c
@@ -200,7 +200,8 @@ _build_script_write(const char *path)
    eina_strbuf_append_printf(buf, "edje_cc -v generated.edc -id images/ -sd 
sounds/ -fd fonts/");
    fputs(eina_strbuf_string_get(buf), f);
    eina_strbuf_free(buf);
-   chmod(path, S_IRWXU|S_IRWXG|S_IROTH|S_IWOTH);
+   if (chmod(path, S_IRWXU|S_IRWXG|S_IROTH|S_IWOTH) < 0)
+     ERR("Bash script failed to change mode to execute");
 
    fclose(f);
    return true;

-- 


Reply via email to