aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.cpp
diff options
context:
space:
mode:
authorAwfulCrawler <AwfulCrawler@users.noreply.github.com>2016-04-18 13:58:22 +1200
committerAwfulCrawler <AwfulCrawler@users.noreply.github.com>2016-04-18 13:58:22 +1200
commit2d9dfd082096429b4b1876aff8cb8c76f93b7b10 (patch)
tree3665fcb864eabc32a754c7bfddc90a3c672dd598 /src/common/util.cpp
parentMerge pull request #799 (diff)
parentMerge pull request #803 (diff)
downloadmonero-2d9dfd082096429b4b1876aff8cb8c76f93b7b10.tar.xz
Merge pull request #1 from monero-project/master
Catch up with Monero master
Diffstat (limited to '')
-rw-r--r--src/common/util.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/util.cpp b/src/common/util.cpp
index 6f75e5bad..2337f5766 100644
--- a/src/common/util.cpp
+++ b/src/common/util.cpp
@@ -413,4 +413,13 @@ std::string get_nix_version_display_string()
}
return false;
}
+ void set_strict_default_file_permissions(bool strict)
+ {
+#if defined(__MINGW32__) || defined(__MINGW__)
+ // no clue about the odd one out
+#else
+ mode_t mode = strict ? 077 : 0;
+ umask(mode);
+#endif
+ }
}