OSDN Git Service

tmon: set umask to a reasonable value
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / tools / thermal / tmon / tmon.c
index 059e0be..09b7c32 100644 (file)
@@ -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();