diff --git a/legacy/efreet/src/bin/efreet_desktop_cache_create.c b/legacy/efreet/src/bin/efreet_desktop_cache_create.c index 28254e638b..d4a721e3ca 100644 --- a/legacy/efreet/src/bin/efreet_desktop_cache_create.c +++ b/legacy/efreet/src/bin/efreet_desktop_cache_create.c @@ -488,16 +488,16 @@ 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) - { - efreet_fsetowner(tmpfd); - if (write(tmpfd, "a", 1) != 1) perror("write"); - close(tmpfd); - } - } + { + 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); + } + } EINA_LIST_FREE(scanned, dir) eina_stringshare_del(dir); diff --git a/legacy/efreet/src/bin/efreet_icon_cache_create.c b/legacy/efreet/src/bin/efreet_icon_cache_create.c index 10bfd6d26e..ba2fe6fb4c 100644 --- a/legacy/efreet/src/bin/efreet_icon_cache_create.c +++ b/legacy/efreet/src/bin/efreet_icon_cache_create.c @@ -982,16 +982,16 @@ main(int argc, char **argv) /* 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) - { - efreet_fsetowner(tmpfd); - write(tmpfd, "a", 1); - close(tmpfd); - } - } + { + 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) + { + efreet_fsetowner(tmpfd); + write(tmpfd, "a", 1); + close(tmpfd); + } + } on_error_efreet: efreet_shutdown();