summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-08-27 16:37:12 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-08-28 16:13:46 +0100
commit448148d83cb488c9909290a8f1ea04e8c490e968 (patch)
treed166d0d1a906f71ad783ab7ecbf95acad5f3eb08
parent70062e7a10ff62b3e0852001ab93a4bd9375714d (diff)
McdMaster: fail to build if umask() is missing
We ought to be able to rely on umask() for files created since 5.2.2, at least on Unix. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54151
-rw-r--r--src/mcd-master.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mcd-master.c b/src/mcd-master.c
index d2233064..21ccd3ff 100644
--- a/src/mcd-master.c
+++ b/src/mcd-master.c
@@ -77,6 +77,12 @@
#include "mcd-transport.h"
#include "plugin-loader.h"
+#ifdef G_OS_UNIX
+# ifndef HAVE_UMASK
+# error On Unix, MC relies on umask() for account privacy
+# endif
+#endif
+
#define MCD_MASTER_PRIV(master) (G_TYPE_INSTANCE_GET_PRIVATE ((master), \
MCD_TYPE_MASTER, \
McdMasterPrivate))