зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
5ddd42b71b
Коммит
16cf423f11
|
@ -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));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче