We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f591e2 commit 69c9a1eCopy full SHA for 69c9a1e
modules/setting/ssh.go
@@ -137,8 +137,7 @@ func loadSSHFrom(rootCfg ConfigProvider) {
137
if !filepath.IsAbs(SSH.KeyTestPath) {
138
SSH.KeyTestPath = filepath.Join(TempPath, SSH.KeyTestPath)
139
}
140
- // FIXME: why 0o644 for a directory .....
141
- if err := os.MkdirAll(SSH.KeyTestPath, 0o644); err != nil {
+ if err := os.MkdirAll(SSH.KeyTestPath, os.ModePerm); err != nil {
142
log.Fatal("failed to create directory %q for ssh key test: %w", SSH.KeyTestPath, err)
143
144
0 commit comments