efreet: remove realpath

No need to use realpath here, paths coming in here are already sane

SVN revision: 78160
This commit is contained in:
Sebastian Dransfeld 2012-10-18 08:10:23 +00:00
parent fc7b1d66a6
commit 8009998bcc
1 changed files with 4 additions and 7 deletions

View File

@ -474,22 +474,19 @@ icon_theme_index_read(Efreet_Cache_Icon_Theme *theme, const char *path)
Efreet_Icon_Theme_Directory *dir; Efreet_Icon_Theme_Directory *dir;
const char *tmp; const char *tmp;
struct stat st; struct stat st;
char rp[PATH_MAX];
if (!theme || !path) return EINA_FALSE; if (!theme || !path) return EINA_FALSE;
if (!realpath(path, rp)) return EINA_FALSE; if (stat(path, &st) < 0) return EINA_FALSE;
if (theme->path && !strcmp(theme->path, path) && theme->last_cache_check >= (long long) st.st_mtime)
if (stat(rp, &st) < 0) return EINA_FALSE;
if (theme->path && !strcmp(theme->path, rp) && theme->last_cache_check >= (long long) st.st_mtime)
{ {
/* no change */ /* no change */
theme->valid = 1; theme->valid = 1;
return EINA_TRUE; return EINA_TRUE;
} }
if (!theme->path || strcmp(theme->path, rp)) if (!theme->path || strcmp(theme->path, path))
{ {
theme->path = eina_stringshare_add(rp); theme->path = eina_stringshare_add(path);
eina_array_push(strs, theme->path); eina_array_push(strs, theme->path);
} }
if ((long long) st.st_mtime > theme->last_cache_check) if ((long long) st.st_mtime > theme->last_cache_check)