From de3286bc2af01ba25176b0b3e67d82041eeb925b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 27 Aug 2012 16:37:12 +0100 Subject: [PATCH 1/5] 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 --- src/mcd-master.c | 6 ++++++ 1 file changed, 6 insertions(+) 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)) -- 1.7.10.4