Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_config.c 


Log Message:


and now work right - atomic save

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -3 -r1.190 -r1.191
--- e_config.c  15 Aug 2006 06:47:22 -0000      1.190
+++ e_config.c  15 Aug 2006 06:59:55 -0000      1.191
@@ -1513,9 +1513,11 @@
        ok = eet_write(ef, "config", _e_config_profile, 
                       strlen(_e_config_profile), 0);
        if (_e_config_eet_close_handle(ef, buf2))
-         ecore_file_mv(buf2, buf);
-       else
-         ecore_file_unlink(buf2);
+         {
+            rename(buf2, buf);
+            /* FIXME: get rename err */
+         }
+       ecore_file_unlink(buf2);
      }
    return ok;
 }
@@ -1538,14 +1540,16 @@
            homedir, _e_config_profile, domain);
    snprintf(buf2, sizeof(buf2), "%s.tmp", buf);
    E_FREE(homedir);
-   ef = eet_open(buf, EET_FILE_MODE_WRITE);
+   ef = eet_open(buf2, EET_FILE_MODE_WRITE);
    if (ef)
      {
        ok = eet_data_write(ef, edd, "config", data, 1);
        if (_e_config_eet_close_handle(ef, buf2))
-         ecore_file_mv(buf2, buf);
-       else
-         ecore_file_unlink(buf2);
+         {
+            rename(buf2, buf);
+            /* FIXME: get rename err */
+         }
+       ecore_file_unlink(buf2);
      }
    return ok;
 }



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

Reply via email to