tSet default umask to 077 to limit socket read/write access - safe - password protected secret keeper
 (HTM) git clone git://git.z3bra.org/safe.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 83e2319375810b7b77c167307da011cff8bc0635
 (DIR) parent abd3bdb063e173f695700fed0c8315d530902e9e
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Mon,  3 Jun 2019 18:01:49 +0200
       
       Set default umask to 077 to limit socket read/write access
       
       Diffstat:
         M safe.c                              |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git a/safe.c b/safe.c
       t@@ -420,6 +420,7 @@ main(int argc, char *argv[])
                if (sodium_init() < 0)
                        return -1;
        
       +        umask(077);
                if (safe) {
                        mkdir(safe, 0700);
                        if (chdir(safe) < 0)