Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_file


Modified Files:
        ecore_file.c 


Log Message:
realpath returns null if the file doesn't exist.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- ecore_file.c        10 Oct 2005 21:10:04 -0000      1.32
+++ ecore_file.c        11 Oct 2005 20:11:36 -0000      1.33
@@ -129,13 +129,8 @@
    char                realpath2[PATH_MAX];
    size_t              num;
    
-   if (realpath(src, realpath1) && realpath(dst, realpath2))
-     {
-       if (!strcmp(realpath1, realpath2))
-         return 0;
-     }
-   else
-     return 0;
+   if (!realpath(src, realpath1)) return 0;
+   if (realpath(dst, realpath2) && !strcmp(realpath1, realpath2)) return 0;
 
    f1 = fopen(src, "rb");
    if (!f1) return 0;




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to