forked from enlightenment/enlightenment
Check return values of mkpath for failure. If these do fail then trashing
will not work. SVN revision: 32038
This commit is contained in:
parent
d46f266dcc
commit
4ba051b3ed
|
@ -1638,9 +1638,9 @@ _e_cb_fop_trash_idler(void *data)
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue