summaryrefslogtreecommitdiff
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-09-04 18:14:52 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-09-04 18:14:52 +0200
commitd7e003a51924d1686574598f7db5557faf65000e (patch)
tree5f480af3c51b279712386206b95fa31cb3906433 /stagit.c
parent8787f495e09fd3857fd4bbbb7c32784f86787df6 (diff)
allow umask to handle permissions
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stagit.c b/stagit.c
index 3362fe5..4e046fd 100644
--- 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>"