From bbc14ef79b710453e83d2362894d58415054334d Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Sat, 3 Feb 2001 00:01:52 +0000 Subject: [PATCH] #66450 r=timeless, sr=hyatt Don't open installed-chrome.txt read/write unnecessarily - just open it read git-svn-id: svn://10.0.0.236/trunk@86128 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/chrome/src/nsChromeRegistry.cpp | 2 +- mozilla/rdf/chrome/src/nsChromeRegistry.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/chrome/src/nsChromeRegistry.cpp b/mozilla/chrome/src/nsChromeRegistry.cpp index b00d5e22619..b20478cb5b5 100644 --- a/mozilla/chrome/src/nsChromeRegistry.cpp +++ b/mozilla/chrome/src/nsChromeRegistry.cpp @@ -2602,7 +2602,7 @@ nsChromeRegistry::CheckForNewChrome() } PRFileDesc *file; - rv = listFile->OpenNSPRFileDesc(PR_RDWR, 0, &file); + rv = listFile->OpenNSPRFileDesc(PR_RDONLY, 0, &file); if (NS_FAILED(rv)) return rv; // file is open. diff --git a/mozilla/rdf/chrome/src/nsChromeRegistry.cpp b/mozilla/rdf/chrome/src/nsChromeRegistry.cpp index b00d5e22619..b20478cb5b5 100644 --- a/mozilla/rdf/chrome/src/nsChromeRegistry.cpp +++ b/mozilla/rdf/chrome/src/nsChromeRegistry.cpp @@ -2602,7 +2602,7 @@ nsChromeRegistry::CheckForNewChrome() } PRFileDesc *file; - rv = listFile->OpenNSPRFileDesc(PR_RDWR, 0, &file); + rv = listFile->OpenNSPRFileDesc(PR_RDONLY, 0, &file); if (NS_FAILED(rv)) return rv; // file is open.