telepathy-mission-control: McdMaster: fail to build if umask() is missing
Simon McVittie
smcv at kemper.freedesktop.org
Tue Aug 28 08:15:58 PDT 2012
Module: telepathy-mission-control
Branch: master
Commit: 448148d83cb488c9909290a8f1ea04e8c490e968
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=448148d83cb488c9909290a8f1ea04e8c490e968
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Mon Aug 27 16:37:12 2012 +0100
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 at collabora.co.uk>
Reviewed-by: Xavier Claessens <xavier.claessens at collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54151
---
src/mcd-master.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mcd-master.c b/src/mcd-master.c
index d223306..21ccd3f 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))
More information about the telepathy-commits
mailing list