Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : libs/eet

Dir     : e17/libs/eet/src/lib


Modified Files:
        eet_lib.c 


Log Message:
Check if file was really open before continue.

If we tried to create the new rw file, we must check if it was created
fine before continue, lots of errors are possible there, but mine was
creating the file inside an nonexistent directory.


===================================================================
RCS file: /cvs/e/e17/libs/eet/src/lib/eet_lib.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -3 -r1.110 -r1.111
--- eet_lib.c   9 Jun 2008 03:19:25 -0000       1.110
+++ eet_lib.c   27 Jun 2008 22:05:49 -0000      1.111
@@ -1267,6 +1267,8 @@
        ef->readfp = ef->fp;
        unlink(ef->path);
        ef->fp = fopen(ef->path, "wb");
+       if (eet_test_close(!ef->fp, ef))
+         return NULL;
        fcntl(fileno(ef->fp), F_SETFD, FD_CLOEXEC);
      }
 



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to