forked from enlightenment/efl
parent
2316172755
commit
7c1d716453
|
@ -488,16 +488,16 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
/* touch update file */
|
/* touch update file */
|
||||||
if (changed)
|
if (changed)
|
||||||
{
|
{
|
||||||
snprintf(file, sizeof(file), "%s/efreet/desktop_data.update", efreet_cache_home_get());
|
snprintf(file, sizeof(file), "%s/efreet/desktop_data.update", efreet_cache_home_get());
|
||||||
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
|
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
|
||||||
if (tmpfd >= 0)
|
if (tmpfd >= 0)
|
||||||
{
|
{
|
||||||
efreet_fsetowner(tmpfd);
|
efreet_fsetowner(tmpfd);
|
||||||
if (write(tmpfd, "a", 1) != 1) perror("write");
|
if (write(tmpfd, "a", 1) != 1) perror("write");
|
||||||
close(tmpfd);
|
close(tmpfd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EINA_LIST_FREE(scanned, dir)
|
EINA_LIST_FREE(scanned, dir)
|
||||||
eina_stringshare_del(dir);
|
eina_stringshare_del(dir);
|
||||||
|
|
|
@ -982,16 +982,16 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
/* touch update file */
|
/* touch update file */
|
||||||
if (changed)
|
if (changed)
|
||||||
{
|
{
|
||||||
snprintf(file, sizeof(file), "%s/efreet/icon_data.update", efreet_cache_home_get());
|
snprintf(file, sizeof(file), "%s/efreet/icon_data.update", efreet_cache_home_get());
|
||||||
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
|
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
|
||||||
if (tmpfd >= 0)
|
if (tmpfd >= 0)
|
||||||
{
|
{
|
||||||
efreet_fsetowner(tmpfd);
|
efreet_fsetowner(tmpfd);
|
||||||
write(tmpfd, "a", 1);
|
write(tmpfd, "a", 1);
|
||||||
close(tmpfd);
|
close(tmpfd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
on_error_efreet:
|
on_error_efreet:
|
||||||
efreet_shutdown();
|
efreet_shutdown();
|
||||||
|
|
Loading…
Reference in New Issue