diff options
author | Rutger Broekhoff | 2023-12-30 15:38:57 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2023-12-30 15:38:57 +0100 |
commit | 6e53cbb10cf8635e9454af2bd1a11e1d12eca25f (patch) | |
tree | fcd43ef14228f43bebc584e0f4c4fd501bd9f0ed | |
parent | 1ec40a20de02ce6ba873271b6838cb72e999612f (diff) | |
download | gitolfs3-6e53cbb10cf8635e9454af2bd1a11e1d12eca25f.tar.gz gitolfs3-6e53cbb10cf8635e9454af2bd1a11e1d12eca25f.zip |
Adjust MkdirAll mode
-rw-r--r-- | cmd/git-lfs-authenticate/main.go | 4 |
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) { | |||
68 | func dieReqID(reqID string, msg string, args ...any) { | 68 | func 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 | ||