mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
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:
parent
afef72241b
commit
d5ae66ef70
2 changed files with 7 additions and 0 deletions
|
@ -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>
|
2004-07-24 Steve Lhomme <steve.lhomme at free dot fr>
|
||||||
|
|
||||||
* gst/registries/gstxmlregistry.c:
|
* gst/registries/gstxmlregistry.c:
|
||||||
|
|
|
@ -632,7 +632,9 @@ gst_xml_registry_close_func (GstXMLRegistry * registry)
|
||||||
/* If we opened for writing, rename our temporary file. */
|
/* If we opened for writing, rename our temporary file. */
|
||||||
tmploc = g_strconcat (registry->location, ".tmp", NULL);
|
tmploc = g_strconcat (registry->location, ".tmp", NULL);
|
||||||
if (g_file_test (tmploc, G_FILE_TEST_EXISTS)) {
|
if (g_file_test (tmploc, G_FILE_TEST_EXISTS)) {
|
||||||
|
#ifdef WIN32
|
||||||
remove (registry->location);
|
remove (registry->location);
|
||||||
|
#endif
|
||||||
rename (tmploc, registry->location);
|
rename (tmploc, registry->location);
|
||||||
}
|
}
|
||||||
g_free (tmploc);
|
g_free (tmploc);
|
||||||
|
|
Loading…
Reference in a new issue