Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_file Modified Files: ecore_file_path.c Log Message: resolv symlinks =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file_path.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ecore_file_path.c 28 Sep 2005 05:57:41 -0000 1.11 +++ ecore_file_path.c 29 Sep 2005 17:25:38 -0000 1.12 @@ -61,17 +61,16 @@ ecore_file_app_installed(const char *exe) { char *dir; - char buf[PATH_MAX]; + char buf[PATH_MAX], buf2[PATH_MAX]; if (!exe) return 0; - if (ecore_file_can_exec(exe)) return 1; + if (realpath(exe, buf) && ecore_file_can_exec(buf)) return 1; ecore_list_goto_first(__ecore_file_path_bin); while ((dir = ecore_list_next(__ecore_file_path_bin)) != NULL) { snprintf(buf, sizeof(buf), "%s/%s", dir, exe); - if (ecore_file_can_exec(buf)) - return 1; + if (realpath(buf, buf2) && ecore_file_can_exec(buf2)) return 1; } return 0; } ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs