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
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user