mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
gst/registries/gstxmlregistry.c (gst_xml_registry_open_func): Don't use O_EXCL to open temporary registry. It will p...
Original commit message from CVS: 2004-08-10 Colin Walters <walters@redhat.com> * gst/registries/gstxmlregistry.c (gst_xml_registry_open_func): Don't use O_EXCL to open temporary registry. It will prevent registry creation if a temporary one already exists, which is unnecessary.
This commit is contained in:
parent
872c394a39
commit
0eadb80815
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-08-10 Colin Walters <walters@redhat.com>
|
||||||
|
|
||||||
|
* gst/registries/gstxmlregistry.c (gst_xml_registry_open_func):
|
||||||
|
Don't use O_EXCL to open temporary registry. It will prevent
|
||||||
|
registry creation if a temporary one already exists, which
|
||||||
|
is unnecessary.
|
||||||
|
|
||||||
2004-08-09 Steve Lhomme <steve.lhomme@free.fr>
|
2004-08-09 Steve Lhomme <steve.lhomme@free.fr>
|
||||||
|
|
||||||
* docs/gst/gstreamer-sections.txt:
|
* docs/gst/gstreamer-sections.txt:
|
||||||
|
|
|
@ -581,7 +581,7 @@ gst_xml_registry_open_func (GstXMLRegistry * registry, GstXMLRegistryMode mode)
|
||||||
|
|
||||||
GST_CAT_DEBUG (GST_CAT_GST_INIT, "opening registry %s for writing", tmploc);
|
GST_CAT_DEBUG (GST_CAT_GST_INIT, "opening registry %s for writing", tmploc);
|
||||||
|
|
||||||
if ((fd = open (tmploc, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) {
|
if ((fd = open (tmploc, O_WRONLY | O_CREAT, 0644)) < 0) {
|
||||||
g_free (tmploc);
|
g_free (tmploc);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue