]> git.armaanb.net Git - stagit.git/commitdiff
allow umask to handle permissions
authorHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 4 Sep 2017 16:14:52 +0000 (18:14 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 4 Sep 2017 16:14:52 +0000 (18:14 +0200)
stagit.c

index 3362fe5fca417fab35719c2580ebbd8d8b336bdf..4e046fd326d2b49dd9782f3778ea674a15ccae95 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -1094,7 +1094,7 @@ main(int argc, char *argv[])
        /* log for HEAD */
        fp = efopen("log.html", "w");
        relpath = "";
-       mkdir("commit", 0755);
+       mkdir("commit", S_IRWXU | S_IRWXG | S_IRWXO);
        writeheader(fp, "Log");
        fputs("<table id=\"log\"><thead>\n<tr><td><b>Date</b></td>"
              "<td><b>Commit message</b></td>"