rimmed pushed a commit to branch master.

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

commit dc228b8458e637ee434a9fecf3ca85fc3fb13094
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Fri Apr 15 07:36:28 2016 +0300

    project_common: check permissions for selected path
    
    Fixes T3457
    
    Change-Id: I80fa96e60b977e2d2c4d9437db53049872f5f74c
---
 src/bin/ui/project_common.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/bin/ui/project_common.c b/src/bin/ui/project_common.c
index fb015fc..e3d28fd 100644
--- a/src/bin/ui/project_common.c
+++ b/src/bin/ui/project_common.c
@@ -33,6 +33,14 @@ exist_permission_check(const char *path, const char *name,
    /* we alwayes imported and exported project to folder by given path, means
     * that we alwayes create a new folder for project or exported source.
     * So need to check there is the folder "path/name" */
+   if (!ecore_file_can_write(path))
+     {
+        buf_msg = eina_strbuf_new();
+        eina_strbuf_append_printf(buf_msg, _("Haven't permision to write 
'%s'"), path);
+        popup_want_action(title, eina_strbuf_string_get(buf_msg), NULL, NULL, 
BTN_OK, NULL, NULL);
+        eina_strbuf_free(buf_msg);
+        return false;
+     }
    buf = eina_strbuf_new();
    eina_strbuf_append_printf(buf, "%s/%s", path, name);
    if (!ecore_file_exists(eina_strbuf_string_get(buf))) return true;

-- 


Reply via email to