1
From a3e11e465faf2087098465ca4c1f90e3afb9463d Mon Sep 17 00:00:00 2001
2
From: Benjamin Herr <ben@0x539.de>
3
Date: Fri, 5 Mar 2010 11:40:19 +0100
4
Subject: [PATCH 2/4] infinoted: set umask when using libdaemon
6
2010-03-05 Benjamin Herr <ben@0x539.de>
8
* infinoted/infinoted-main.c: Call umask(077) explicitly after
9
forking since libdaemon < 0.14 sets the mask to 0777.
12
infinoted/infinoted-main.c | 6 ++++++
13
2 files changed, 11 insertions(+), 0 deletions(-)
15
diff --git a/infinoted/infinoted-main.c b/infinoted/infinoted-main.c
16
index 92c533f..829242b 100644
17
--- a/infinoted/infinoted-main.c
18
+++ b/infinoted/infinoted-main.c
19
@@ -123,6 +123,12 @@ infinoted_main_run(InfinotedStartup* startup,
21
daemon_retval_send(0);
24
+ /* libdaemon < 0.14 sets our umask to 0777, preventing the file storage
25
+ * backend from working correctly. 0.14 uses 0077, but the documentation
26
+ * still says 0777, and, anyway, 0.14 does not seem widespread enough