diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-29 09:54:53 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-29 09:54:53 +0100 |
commit | 30e86c5eb0c8c3466bf6cbc750e01ba97c2dc80c (patch) | |
tree | 241de2784385d150b077697d81eda58576af6986 /other/bootstrap_daemon/src | |
parent | 36f40f1a4f9041c138cc38460cb8e93d904131bd (diff) | |
parent | dcf2aaa53005060608353b9d66b9917fd7ed18a9 (diff) |
Merge branch 'master' of https://github.com/irungentoo/toxcore
Diffstat (limited to 'other/bootstrap_daemon/src')
-rw-r--r-- | other/bootstrap_daemon/src/tox-bootstrapd.c | 4 |
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 | ||
176 | int main(int argc, char *argv[]) | 175 | int 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; |