SVN revision: 58472
This commit is contained in:
Carsten Haitzler 2011-04-08 05:57:28 +00:00
parent 56b3584912
commit 5a0625660a
2 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ static Eina_Array *strs = NULL;
static Eina_Hash *icon_themes = NULL;
static Eina_Bool
cache_directory_find(Eina_Hash *dirs, const char *dir)
cache_directory_find(Eina_Hash *dirs __UNUSED__, const char *dir __UNUSED__)
{
return EINA_TRUE;
#if 0
@ -1092,8 +1092,10 @@ main(int argc, char **argv)
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
if (tmpfd >= 0)
{
int written;
efreet_fsetowner(tmpfd);
write(tmpfd, "a", 1);
written = write(tmpfd, "a", 1);
close(tmpfd);
}
}

View File

@ -320,7 +320,7 @@ efreet_fsetowner(int fd)
if (fstat(fd, &st) < 0) return;
if (st.st_uid == ruid) return;
fchown(fd, ruid, rgid);
if (fchown(fd, ruid, rgid) != 0) return;
}
EAPI void