forked from enlightenment/efl
parent
0b30e759ed
commit
51e1eca0a9
|
@ -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)
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue