supplimental fix for bug #375102: make localstore.rdf use nsISafeOutputStreamrevert back to 0666 perms on file to address a Seamonkey regressionThanks to Andrew Schultz for reporting the problem.r=dveditz
authorsspitzer@mozilla.org
Sat, 31 Mar 2007 18:58:58 -0700
changeset 251 38940f1a0f8feec42b2ab9020ec2bade14fbac2e
parent 250 0ead50bc0061913fbc1c85bac7a824ac4df01e9c
child 252 1b4778a5e2e71bb763c0fded52ac60a5c1f0294c
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdveditz
bugs375102
milestone1.9a4pre
supplimental fix for bug #375102: make localstore.rdf use nsISafeOutputStreamrevert back to 0666 perms on file to address a Seamonkey regressionThanks to Andrew Schultz for reporting the problem.r=dveditz
rdf/base/src/nsRDFXMLDataSource.cpp
--- a/rdf/base/src/nsRDFXMLDataSource.cpp
+++ b/rdf/base/src/nsRDFXMLDataSource.cpp
@@ -758,17 +758,17 @@ RDFXMLDataSourceImpl::rdfXMLFlush(nsIURI
         fileURL->GetFile(getter_AddRefs(file));
         if (file) {
             // get a safe output stream, so we don't clobber the datasource file unless
             // all the writes succeeded.
             nsCOMPtr<nsIOutputStream> out;
             rv = NS_NewSafeLocalFileOutputStream(getter_AddRefs(out),
                                                  file,
                                                  PR_WRONLY | PR_CREATE_FILE,
-                                                 /*octal*/ 0600,
+                                                 /*octal*/ 0666,
                                                  0);
             if (NS_FAILED(rv)) return rv;
 
             nsCOMPtr<nsIOutputStream> bufferedOut;
             rv = NS_NewBufferedOutputStream(getter_AddRefs(bufferedOut), out, 4096);
             if (NS_FAILED(rv)) return rv;
 
             rv = Serialize(bufferedOut);