diff --git a/xpcom/io/nsFileSpecUnix.cpp b/xpcom/io/nsFileSpecUnix.cpp index 138388d3afeb..3ebb8cad7b1d 100644 --- a/xpcom/io/nsFileSpecUnix.cpp +++ b/xpcom/io/nsFileSpecUnix.cpp @@ -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); } diff --git a/xpcom/io/nsFileSpecWin.cpp b/xpcom/io/nsFileSpecWin.cpp index 65bfa567fca3..a72a377d9192 100644 --- a/xpcom/io/nsFileSpecWin.cpp +++ b/xpcom/io/nsFileSpecWin.cpp @@ -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);