check rename() return value

CID 1039966
This commit is contained in:
Mike Blumenkrantz 2014-04-04 13:38:38 -04:00
parent ed4eb3b6e0
commit 11197cb684
1 changed files with 2 additions and 1 deletions

View File

@ -1322,7 +1322,8 @@ _e_fm_ipc_cb_fop_trash_idler(void *data)
}
else
/* Could not create info file. Spec says to put orig file back */
rename(dest, fop->src);
if (rename(dest, fop->src) < 0)
ERR("File could not be put back!");
free(dest);
eina_stringshare_del(fop->src);