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 */
//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)

View File

@ -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");