From bdf03fd66eb0c9fcda63b740cf9b7311508bedcf Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Wed, 29 Mar 2000 00:39:47 +0000 Subject: [PATCH] fix regression #33625 - back out removal of Exists() for now (eventually there will be a better fix here) git-svn-id: svn://10.0.0.236/trunk@64409 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpref/src/nsPref.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/modules/libpref/src/nsPref.cpp b/mozilla/modules/libpref/src/nsPref.cpp index 444e17798c9..749b27c1fc2 100644 --- a/mozilla/modules/libpref/src/nsPref.cpp +++ b/mozilla/modules/libpref/src/nsPref.cpp @@ -1007,6 +1007,9 @@ PrefResult pref_OpenFileSpec( if (NS_FAILED(fileSpec->ResolveSymlink())) return PREF_ERROR; + + if (!fileSpec->Exists()) + return PREF_ERROR; char* readBuf; if (NS_FAILED(fileSpec->GetFileContents(&readBuf)))