removing the file doesn't seem to be a good idea on Linux

Original commit message from CVS:
removing the file doesn't seem to be a good idea on Linux
This commit is contained in:
Steve Lhomme 2004-07-24 11:48:26 +00:00
parent afef72241b
commit d5ae66ef70
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-07-24 Steve Lhomme <steve.lhomme at free dot fr>
* gst/registries/gstxmlregistry.c:
removing the file doesn't seem to be a good idea on Linux
2004-07-24 Steve Lhomme <steve.lhomme at free dot fr>
* gst/registries/gstxmlregistry.c:

View file

@ -632,7 +632,9 @@ gst_xml_registry_close_func (GstXMLRegistry * registry)
/* If we opened for writing, rename our temporary file. */
tmploc = g_strconcat (registry->location, ".tmp", NULL);
if (g_file_test (tmploc, G_FILE_TEST_EXISTS)) {
#ifdef WIN32
remove (registry->location);
#endif
rename (tmploc, registry->location);
}
g_free (tmploc);