diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-26 11:08:40 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-04-26 11:08:40 +0300 |
| commit | dce5374660cc5c6fcf806fd6198f7da4ec5cbe5a (patch) | |
| tree | 134ef267ac273d3f8cda304a1d876502c655372a /src/common/util.cpp | |
| parent | 53a97bdcd381342bc7d738946a628654a2261a52 (diff) | |
| parent | 1c66fe04bcebf50102abe6c96322f0fa5ce740ec (diff) | |
| download | monzero-core-dce5374660cc5c6fcf806fd6198f7da4ec5cbe5a.tar.gz monzero-core-dce5374660cc5c6fcf806fd6198f7da4ec5cbe5a.tar.xz monzero-core-dce5374660cc5c6fcf806fd6198f7da4ec5cbe5a.zip | |
Merge remote-tracking branch 'upstream/master' into develop
Diffstat (limited to 'src/common/util.cpp')
| -rw-r--r-- | src/common/util.cpp | 9 |
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 + } } |
