OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tmon: set umask to a reasonable value
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
tools
/
thermal
/
tmon
/
tmon.c
diff --git
a/tools/thermal/tmon/tmon.c
b/tools/thermal/tmon/tmon.c
index
059e0be
..
09b7c32
100644
(file)
--- a/
tools/thermal/tmon/tmon.c
+++ b/
tools/thermal/tmon/tmon.c
@@
-355,7
+355,7
@@
static void start_daemon_mode()
disable_tui();
/* change the file mode mask */
- umask(
0
);
+ umask(
S_IWGRP | S_IWOTH
);
/* new SID for the daemon process */
sid = setsid();