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:
dst, not src in second realpath

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




-------------------------------------------------------
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