forked from enlightenment/efl
actually change file, as we don't listen to attrib
SVN revision: 54924
This commit is contained in:
parent
e8ae0da271
commit
3fab0c44cb
|
@ -429,14 +429,10 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
/* touch update file */
|
/* touch update file */
|
||||||
snprintf(file, sizeof(file), "%s/.efreet/desktop_data.update", efreet_home_dir_get());
|
snprintf(file, sizeof(file), "%s/.efreet/desktop_data.update", efreet_home_dir_get());
|
||||||
tmpfd = open(file, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
|
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
|
||||||
if (tmpfd >= 0)
|
if (tmpfd >= 0)
|
||||||
{
|
{
|
||||||
struct timeval tv[2];
|
write(tmpfd, "a", 1);
|
||||||
|
|
||||||
gettimeofday(&tv[0], NULL);
|
|
||||||
tv[1] = tv[0];
|
|
||||||
futimes(tmpfd, tv);
|
|
||||||
close(tmpfd);
|
close(tmpfd);
|
||||||
}
|
}
|
||||||
efreet_shutdown();
|
efreet_shutdown();
|
||||||
|
|
|
@ -467,14 +467,10 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
/* touch update file */
|
/* touch update file */
|
||||||
snprintf(file, sizeof(file), "%s/.efreet/icon_data.update", efreet_home_dir_get());
|
snprintf(file, sizeof(file), "%s/.efreet/icon_data.update", efreet_home_dir_get());
|
||||||
tmpfd = open(file, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
|
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
|
||||||
if (tmpfd >= 0)
|
if (tmpfd >= 0)
|
||||||
{
|
{
|
||||||
struct timeval tv[2];
|
write(tmpfd, "a", 1);
|
||||||
|
|
||||||
gettimeofday(&tv[0], NULL);
|
|
||||||
tv[1] = tv[0];
|
|
||||||
futimes(tmpfd, tv);
|
|
||||||
close(tmpfd);
|
close(tmpfd);
|
||||||
}
|
}
|
||||||
efreet_shutdown();
|
efreet_shutdown();
|
||||||
|
|
Loading…
Reference in New Issue