parent
56b3584912
commit
5a0625660a
|
@ -37,7 +37,7 @@ static Eina_Array *strs = NULL;
|
||||||
static Eina_Hash *icon_themes = NULL;
|
static Eina_Hash *icon_themes = NULL;
|
||||||
|
|
||||||
static Eina_Bool
|
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;
|
return EINA_TRUE;
|
||||||
#if 0
|
#if 0
|
||||||
|
@ -1092,8 +1092,10 @@ main(int argc, char **argv)
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
int written;
|
||||||
|
|
||||||
efreet_fsetowner(tmpfd);
|
efreet_fsetowner(tmpfd);
|
||||||
write(tmpfd, "a", 1);
|
written = write(tmpfd, "a", 1);
|
||||||
close(tmpfd);
|
close(tmpfd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -320,7 +320,7 @@ efreet_fsetowner(int fd)
|
||||||
if (fstat(fd, &st) < 0) return;
|
if (fstat(fd, &st) < 0) return;
|
||||||
if (st.st_uid == ruid) return;
|
if (st.st_uid == ruid) return;
|
||||||
|
|
||||||
fchown(fd, ruid, rgid);
|
if (fchown(fd, ruid, rgid) != 0) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
|
Loading…
Reference in New Issue