Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_file Modified Files: ecore_file.c Log Message: fix recursive rm to delete broken symlinks =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_file/ecore_file.c,v retrieving revision 1.47 retrieving revision 1.48 diff -u -3 -r1.47 -r1.48 --- ecore_file.c 31 Aug 2006 08:53:38 -0000 1.47 +++ ecore_file.c 15 Oct 2006 09:18:26 -0000 1.48 @@ -112,16 +112,14 @@ struct stat st; - if (stat(dir, &st) == -1) return 0; - if (readlink(dir, buf, sizeof(buf)) > 0) { ecore_file_unlink(dir); } else if (S_ISDIR(st.st_mode)) { + if (stat(dir, &st) == -1) return 0; dirp = opendir(dir); - if (dirp) { while ((dp = readdir(dirp))) @@ -138,6 +136,7 @@ } else { + if (stat(dir, &st) == -1) return 0; ecore_file_unlink(dir); } ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs