diff --git a/legacy/efreet/src/bin/efreet_desktop_cache_create.c b/legacy/efreet/src/bin/efreet_desktop_cache_create.c index cb407099ea..86ca378a63 100644 --- a/legacy/efreet/src/bin/efreet_desktop_cache_create.c +++ b/legacy/efreet/src/bin/efreet_desktop_cache_create.c @@ -483,16 +483,13 @@ main(int argc, char **argv) } /* touch update file */ - //if (changed) + snprintf(file, sizeof(file), "%s/efreet/desktop_data.update", efreet_cache_home_get()); + tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); + if (tmpfd >= 0) { - snprintf(file, sizeof(file), "%s/efreet/desktop_data.update", efreet_cache_home_get()); - tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); - if (tmpfd >= 0) - { - efreet_fsetowner(tmpfd); - if (write(tmpfd, "a", 1) != 1) perror("write"); - close(tmpfd); - } + efreet_fsetowner(tmpfd); + if (write(tmpfd, "a", 1) != 1) perror("write"); + close(tmpfd); } EINA_LIST_FREE(scanned, dir) diff --git a/legacy/efreet/src/bin/efreet_icon_cache_create.c b/legacy/efreet/src/bin/efreet_icon_cache_create.c index 53dc722ef1..c5d03a52a6 100644 --- a/legacy/efreet/src/bin/efreet_icon_cache_create.c +++ b/legacy/efreet/src/bin/efreet_icon_cache_create.c @@ -1086,18 +1086,15 @@ main(int argc, char **argv) free(theme_version); /* touch update file */ - //if (changed) + snprintf(file, sizeof(file), "%s/efreet/icon_data.update", efreet_cache_home_get()); + tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); + if (tmpfd >= 0) { - snprintf(file, sizeof(file), "%s/efreet/icon_data.update", efreet_cache_home_get()); - tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); - if (tmpfd >= 0) - { - int written; - - efreet_fsetowner(tmpfd); - written = write(tmpfd, "a", 1); - close(tmpfd); - } + int written; + + efreet_fsetowner(tmpfd); + written = write(tmpfd, "a", 1); + close(tmpfd); } INF("done");