forked from enlightenment/efl
parent
2316172755
commit
7c1d716453
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue