Hi urandom,

I have made a small patch for edje_viewer.

This patch checks the read permission by using
ecore_file_can_read() before opening a edje file.

Please have a look at the patch and correct it as you see fit.

Thanks to confirming this patch.

Best regards.
-- 
Naruto TAKAHASHI
tnar...@gmail.com
Index: src/bin/edje_viewer_main.c
===================================================================
--- src/bin/edje_viewer_main.c	(revision 47682)
+++ src/bin/edje_viewer_main.c	(working copy)
@@ -53,6 +53,14 @@ elm_main(int argc, char **argv)
 	return 1;
      }
 
+   if (!ecore_file_can_read(v->config->edje_file))
+     {
+	ERR("Could not read Edje file\n");
+	viewer_free(v);
+	elm_exit();
+	return 1;
+     }
+
    create_main_win(v);
    open_edje_file(v);
 
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to