Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_fm_main.c Log Message: Check return values of mkpath for failure. If these do fail then trashing will not work. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_fm_main.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -3 -r1.32 -r1.33 --- e_fm_main.c 10 Oct 2007 19:04:55 -0000 1.32 +++ e_fm_main.c 10 Oct 2007 19:37:34 -0000 1.33 @@ -1638,9 +1638,9 @@ snprintf(buf, sizeof(buf), "%s/Trash", efreet_data_home_get()); trash_dir = evas_stringshare_add(buf); snprintf(buf, sizeof(buf), "%s/files", trash_dir); - ecore_file_mkpath(buf); + if (!ecore_file_mkpath(buf)) return 0; snprintf(buf, sizeof(buf), "%s/info", trash_dir); - ecore_file_mkpath(buf); + if (!ecore_file_mkpath(buf)) return 0; filename = evas_stringshare_add(strrchr(fop->src, '/')); escname = ecore_file_escape_name(filename); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs