summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon
diff options
context:
space:
mode:
Diffstat (limited to 'other/bootstrap_daemon')
-rw-r--r--other/bootstrap_daemon/src/tox-bootstrapd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c
index fe360b4e..e846eeda 100644
--- a/other/bootstrap_daemon/src/tox-bootstrapd.c
+++ b/other/bootstrap_daemon/src/tox-bootstrapd.c
@@ -30,6 +30,7 @@
30#include <stdio.h> 30#include <stdio.h>
31#include <stdlib.h> 31#include <stdlib.h>
32#include <string.h> 32#include <string.h>
33#include <sys/stat.h>
33 34
34// toxcore 35// toxcore
35#include "../../../toxcore/LAN_discovery.h" 36#include "../../../toxcore/LAN_discovery.h"
@@ -156,8 +157,6 @@ static void daemonize(LOG_BACKEND log_backend, char *pid_file_path)
156 exit(1); 157 exit(1);
157 } 158 }
158 159
159 // Change the file mode mask
160 umask(0);
161 160
162 // Change the current working directory 161 // Change the current working directory
163 if ((chdir("/")) < 0) { 162 if ((chdir("/")) < 0) {
@@ -175,6 +174,7 @@ static void daemonize(LOG_BACKEND log_backend, char *pid_file_path)
175 174
176int main(int argc, char *argv[]) 175int main(int argc, char *argv[])
177{ 176{
177 umask(077);
178 char *cfg_file_path; 178 char *cfg_file_path;
179 LOG_BACKEND log_backend; 179 LOG_BACKEND log_backend;
180 bool run_in_foreground; 180 bool run_in_foreground;