allow umask to handle permissions - stagit-gopher - A git gopher frontend. (mirror)
 (HTM) git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 9d2866fca3e3de693e52a21d7274ba00f7acfdf9
 (DIR) parent d79f33d2026e12cbd696bc46434e717c05c0427e
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Mon,  4 Sep 2017 18:14:20 +0200
       
       allow umask to handle permissions
       
       Diffstat:
         M stagit-gopher.c                     |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/stagit-gopher.c b/stagit-gopher.c
       @@ -1199,7 +1199,7 @@ main(int argc, char *argv[])
        
                /* log for HEAD */
                fp = efopen("log.gph", "w");
       -        mkdir("commit", 0755);
       +        mkdir("commit", S_IRWXU | S_IRWXG | S_IRWXO);
                writeheader(fp, "Log");
        
                fprintf(fp, "%-16.16s  ", "Date");