tMake socket readable by user only - 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 e06067da1d8a55e22ecdc8d2d257a92251391336
 (DIR) parent 57acebdf13eb09a21d2fa90faefe844417d94122
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Thu,  6 Jun 2019 19:24:46 +0200
       
       Make socket readable by user only
       
       Diffstat:
         M safe.c                              |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git a/safe.c b/safe.c
       t@@ -165,6 +165,7 @@ creatsock(char *sockpath)
                if (sfd < 0)
                        return -1;
        
       +        umask(0077);
                memset(&addr, 0, sizeof(addr));
                addr.sun_family = AF_UNIX;
                strcpy(addr.sun_path, sockpath);