summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutil.cpp2
-rw-r--r--rbutil/rbutilApp.cpp4
-rw-r--r--rbutil/rbutilFrm.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/rbutil.cpp b/rbutil/rbutil.cpp
index 7591408022..332bb0a0ae 100644
--- a/rbutil/rbutil.cpp
+++ b/rbutil/rbutil.cpp
@@ -256,7 +256,7 @@ int UnzipFile(wxString src, wxString destdir, bool isInstall)
if (entry->IsDir() ) {
wxDir* dirname = new wxDir(in_str);
if (! dirname->Exists(in_str) ) {
- if (wxMkDir(in_str) ) {
+ if (wxMkDir(in_str, 0777) ) {
buf.Printf(_("Unable to create directory %s"),
in_str.c_str() );
errnum = 100;
diff --git a/rbutil/rbutilApp.cpp b/rbutil/rbutilApp.cpp
index 5a9e3bcada..971d2f428f 100644
--- a/rbutil/rbutilApp.cpp
+++ b/rbutil/rbutilApp.cpp
@@ -23,7 +23,7 @@ bool rbutilFrmApp::OnInit()
if (! wxDirExists(buf) )
{
wxLogNull lognull;
- if (! wxMkdir(buf))
+ if (! wxMkdir(buf, 0777))
{
wxLogFatalError(_("Can't create data directory %s"),
buf.c_str());
@@ -43,7 +43,7 @@ bool rbutilFrmApp::OnInit()
buf = buf.Left(buf.Len() - 10);
buf.Append(wxT("download"));
- if (! wxDirExists(buf) ) wxMkdir(buf);
+ if (! wxDirExists(buf) ) wxMkdir(buf, 0777);
wxFileSystem::AddHandler(new wxInternetFSHandler);
wxFileSystem::AddHandler(new wxZipFSHandler);
diff --git a/rbutil/rbutilFrm.cpp b/rbutil/rbutilFrm.cpp
index 88341e2a1d..81798fe552 100644
--- a/rbutil/rbutilFrm.cpp
+++ b/rbutil/rbutilFrm.cpp
@@ -235,7 +235,7 @@ void rbutilFrm::OnFileWipeCache(wxCommandEvent& event)
MESG_DIALOG(_("Errors occured deleting the local download cache."));
}
- wxMkDir(cacheloc);
+ wxMkDir(cacheloc, 0777);
}