Set sane directory permissions on creation. Partial fix for 43091. r=dougt

This commit is contained in:
syd%netscape.com 2000-08-04 22:13:10 +00:00
parent d74545338e
commit 97248be348
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ void nsFileSpecHelpers::Canonify(nsSimpleCharString& ioPath, PRBool inMakeDirs)
return;
if (inMakeDirs)
{
const mode_t mode = 0700;
const mode_t mode = 0755;
nsFileSpecHelpers::MakeAllDirectories((const char*)ioPath, mode);
}

View File

@ -63,7 +63,7 @@ void nsFileSpecHelpers::Canonify(nsSimpleCharString& ioPath, PRBool inMakeDirs)
"Please fix.");
if (inMakeDirs)
{
const int mode = 0700;
const int mode = 0755;
nsSimpleCharString unixStylePath = ioPath;
nsFileSpecHelpers::NativeToUnix(unixStylePath);
nsFileSpecHelpers::MakeAllDirectories((const char*)unixStylePath, mode);