]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/thermal/tmon/tmon.c
tmon: set umask to a reasonable value
[karo-tx-linux.git] / tools / thermal / tmon / tmon.c
index 059e0becb3866ee5304a553b2b57eaf49b392c6b..09b7c3218334ba29dad1192d5dbd5a963dd51553 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();