SMOLNET PORTAL home about changes
allow umask to handle permissions - stagit - static git page generator
(URL) git clone git://git.codemadness.org/stagit (git://git.codemadness.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d7e003a51924d1686574598f7db5557faf65000e
(DIR) parent 8787f495e09fd3857fd4bbbb7c32784f86787df6
(URL) Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) application/vnd.lotus-organizer
Date: Mon, 4 Sep 2017 18:14:52 +0200
allow umask to handle permissions
Diffstat:
M stagit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git 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>"
Response: application/gopher-menu
Original URLgopher://codemadness.org/1/git/stagit/commit/d7e003a51924...
Content-Typeapplication/gopher-menu; charset=utf-8