actually change file, as we don't listen to attrib

SVN revision: 54924
This commit is contained in:
Sebastian Dransfeld 2010-11-24 09:37:35 +00:00
parent e8ae0da271
commit 3fab0c44cb
2 changed files with 4 additions and 12 deletions

View File

@ -429,14 +429,10 @@ main(int argc, char **argv)
/* touch update file */
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)
{
struct timeval tv[2];
gettimeofday(&tv[0], NULL);
tv[1] = tv[0];
futimes(tmpfd, tv);
write(tmpfd, "a", 1);
close(tmpfd);
}
efreet_shutdown();

View File

@ -467,14 +467,10 @@ main(int argc, char **argv)
/* touch update file */
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)
{
struct timeval tv[2];
gettimeofday(&tv[0], NULL);
tv[1] = tv[0];
futimes(tmpfd, tv);
write(tmpfd, "a", 1);
close(tmpfd);
}
efreet_shutdown();