From 99a2ec19232466f84b2dcf80772467808d589238 Mon Sep 17 00:00:00 2001 From: "locka%iol.ie" Date: Thu, 17 Jan 2002 23:11:33 +0000 Subject: [PATCH] Fix directory creation permissions so files can actually be saved in them! b=120307 r=brade@netscape.com sr=blizzard@mozilla.org a=asa@mozilla.org git-svn-id: svn://10.0.0.236/trunk@112408 18797224-902f-48f8-a5cc-f745e15eee43 --- .../components/webbrowserpersist/src/nsWebBrowserPersist.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mozilla/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp b/mozilla/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp index d0b6174f5b0..9aab964fb49 100644 --- a/mozilla/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp +++ b/mozilla/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp @@ -737,7 +737,7 @@ nsresult nsWebBrowserPersist::SaveDocumentInternal( if (localDataPath) { - localDataPath->Create(nsILocalFile::DIRECTORY_TYPE, 0664); + localDataPath->Create(nsILocalFile::DIRECTORY_TYPE, 0755); PRBool exists = PR_FALSE; PRBool isDirectory = PR_FALSE; localDataPath->Exists(&exists); @@ -984,7 +984,6 @@ nsWebBrowserPersist::CalculateAndAppendFileExt(nsIURI *aURI, nsIChannel *aChanne if (mimeInfo) { - PRBool matchingExt = PR_FALSE; nsXPIDLCString fileName; localFile->GetLeafName(getter_Copies(fileName));