aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-04-06 19:59:34 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-04-06 19:59:34 +0100
commit7385c036bdd2e9254be99024ddcec639b668f68a (patch)
tree1db1cef3e903ce8f872f979f2d48536b8b65e421 /src/common/util.h
parentMerge pull request #780 (diff)
downloadmonero-7385c036bdd2e9254be99024ddcec639b668f68a.tar.xz
util: add a function to set umask to 077
Useful to ensure files are written without group/other read rights.
Diffstat (limited to '')
-rw-r--r--src/common/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 7554b1df7..ed1c16cb0 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -158,4 +158,6 @@ namespace tools
/*! \brief where the installed handler is stored */
static std::function<void(int)> m_handler;
};
+
+ void set_strict_default_file_permissions(bool strict);
}