From d0df16da36c7a5594da3227ba09ef8ea2368389c Mon Sep 17 00:00:00 2001 From: "syd%netscape.com" Date: Fri, 4 Aug 2000 22:13:10 +0000 Subject: [PATCH] Set sane directory permissions on creation. Partial fix for 43091. r=dougt git-svn-id: svn://10.0.0.236/trunk@75608 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/io/nsFileSpecUnix.cpp | 2 +- mozilla/xpcom/io/nsFileSpecWin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/xpcom/io/nsFileSpecUnix.cpp b/mozilla/xpcom/io/nsFileSpecUnix.cpp index 138388d3afe..3ebb8cad7b1 100644 --- a/mozilla/xpcom/io/nsFileSpecUnix.cpp +++ b/mozilla/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/mozilla/xpcom/io/nsFileSpecWin.cpp b/mozilla/xpcom/io/nsFileSpecWin.cpp index 65bfa567fca..a72a377d919 100644 --- a/mozilla/xpcom/io/nsFileSpecWin.cpp +++ b/mozilla/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);