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

This commit is contained in:
locka%iol.ie 2002-01-17 23:11:33 +00:00
parent e971c0c072
commit 605aaf0df3

View File

@ -737,7 +737,7 @@ nsresult nsWebBrowserPersist::SaveDocumentInternal(
if (localDataPath) if (localDataPath)
{ {
localDataPath->Create(nsILocalFile::DIRECTORY_TYPE, 0664); localDataPath->Create(nsILocalFile::DIRECTORY_TYPE, 0755);
PRBool exists = PR_FALSE; PRBool exists = PR_FALSE;
PRBool isDirectory = PR_FALSE; PRBool isDirectory = PR_FALSE;
localDataPath->Exists(&exists); localDataPath->Exists(&exists);
@ -984,7 +984,6 @@ nsWebBrowserPersist::CalculateAndAppendFileExt(nsIURI *aURI, nsIChannel *aChanne
if (mimeInfo) if (mimeInfo)
{ {
PRBool matchingExt = PR_FALSE;
nsXPIDLCString fileName; nsXPIDLCString fileName;
localFile->GetLeafName(getter_Copies(fileName)); localFile->GetLeafName(getter_Copies(fileName));