aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/git-lfs-authenticate/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/git-lfs-authenticate/main.go')
-rw-r--r--cmd/git-lfs-authenticate/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/git-lfs-authenticate/main.go b/cmd/git-lfs-authenticate/main.go
index e4fa67d..05de4c6 100644
--- a/cmd/git-lfs-authenticate/main.go
+++ b/cmd/git-lfs-authenticate/main.go
@@ -36,7 +36,7 @@ func (l *logger) writer() io.WriteCloser {
36 if w == nil { 36 if w == nil {
37 l.m.Lock() 37 l.m.Lock()
38 if l.wc.Load() == nil { 38 if l.wc.Load() == nil {
39 os.MkdirAll(".gitolfs3/logs/", 0o600) // drw------- 39 os.MkdirAll(".gitolfs3/logs/", 0o700) // Mode: drwx------
40 path := fmt.Sprintf(".gitolfs3/logs/gitolfs3-%s-%s.log", l.time, l.reqID) 40 path := fmt.Sprintf(".gitolfs3/logs/gitolfs3-%s-%s.log", l.time, l.reqID)
41 var err error 41 var err error
42 if w, err = os.Create(path); err == nil { 42 if w, err = os.Create(path); err == nil {
@@ -68,7 +68,7 @@ func die(msg string, args ...any) {
68func dieReqID(reqID string, msg string, args ...any) { 68func dieReqID(reqID string, msg string, args ...any) {
69 fmt.Fprint(os.Stderr, "Error: ") 69 fmt.Fprint(os.Stderr, "Error: ")
70 fmt.Fprintf(os.Stderr, msg, args...) 70 fmt.Fprintf(os.Stderr, msg, args...)
71 fmt.Fprintf(os.Stderr, "(request ID: %s)\n", reqID) 71 fmt.Fprintf(os.Stderr, " (request ID: %s)\n", reqID)
72 os.Exit(1) 72 os.Exit(1)
73} 73}
74 74