From 0eadb80815769d492583a15cb20e40b1b1754027 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 10 Aug 2004 17:28:19 +0000 Subject: [PATCH] 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 * 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. --- ChangeLog | 7 +++++++ gst/registries/gstxmlregistry.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 37b2f39..54fdd85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-08-10 Colin Walters + + * 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 * docs/gst/gstreamer-sections.txt: diff --git a/gst/registries/gstxmlregistry.c b/gst/registries/gstxmlregistry.c index 7695327..396ea13 100644 --- a/gst/registries/gstxmlregistry.c +++ b/gst/registries/gstxmlregistry.c @@ -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); - 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); return FALSE; } -- 2.7.4