wrn--
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 8 Apr 2011 05:57:28 +0000 (05:57 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 8 Apr 2011 05:57:28 +0000 (05:57 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@58472 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/efreet_icon_cache_create.c
src/lib/efreet.c

index bcda5db..53dc722 100644 (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);
         }
     }
index 80a42e5..74fd820 100644 (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