efreet: Remove disabled if

SVN revision: 62501
This commit is contained in:
Sebastian Dransfeld 2011-08-16 12:45:30 +00:00
parent 0b30e759ed
commit 51e1eca0a9
2 changed files with 14 additions and 20 deletions

View File

@ -483,16 +483,13 @@ main(int argc, char **argv)
} }
/* touch update file */ /* 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()); efreet_fsetowner(tmpfd);
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); if (write(tmpfd, "a", 1) != 1) perror("write");
if (tmpfd >= 0) close(tmpfd);
{
efreet_fsetowner(tmpfd);
if (write(tmpfd, "a", 1) != 1) perror("write");
close(tmpfd);
}
} }
EINA_LIST_FREE(scanned, dir) EINA_LIST_FREE(scanned, dir)

View File

@ -1086,18 +1086,15 @@ main(int argc, char **argv)
free(theme_version); free(theme_version);
/* touch update file */ /* 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()); int written;
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
if (tmpfd >= 0)
{
int written;
efreet_fsetowner(tmpfd); efreet_fsetowner(tmpfd);
written = write(tmpfd, "a", 1); written = write(tmpfd, "a", 1);
close(tmpfd); close(tmpfd);
}
} }
INF("done"); INF("done");