# HG changeset patch # User Richard Laager # Date 1144203039 0 # Node ID ffb12e85473f2cd64bf7c0888b89d3444b6d39ec # Parent 097ae11c67e0df158020790aec29f7e4e7c25036 [gaim-migrate @ 15970] gaim_util_write_data_to_file() should not be unlink()ing the target before rename()ing the temporary file over top of the target. rename() will remove the target, if it exists. committer: Tailor Script diff -r 097ae11c67e0 -r ffb12e85473f src/util.c --- a/src/util.c Tue Apr 04 23:54:19 2006 +0000 +++ b/src/util.c Wed Apr 05 02:10:39 2006 +0000 @@ -2380,16 +2380,6 @@ } #endif - /* Remove the old file, if it exists */ - if (g_file_test(filename_full, G_FILE_TEST_EXISTS)) - { - if (g_unlink(filename_full) == -1) - { - gaim_debug_error("util", "Error removing old file %s: %s\n", - filename_full, strerror(errno)); - } - } - /* Rename to the REAL name */ if (g_rename(filename_temp, filename_full) == -1) {