Skip to content

Commit 69c9a1e

Browse files
committed
Fix test
1 parent 9f591e2 commit 69c9a1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/setting/ssh.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ func loadSSHFrom(rootCfg ConfigProvider) {
137137
if !filepath.IsAbs(SSH.KeyTestPath) {
138138
SSH.KeyTestPath = filepath.Join(TempPath, SSH.KeyTestPath)
139139
}
140-
// FIXME: why 0o644 for a directory .....
141-
if err := os.MkdirAll(SSH.KeyTestPath, 0o644); err != nil {
140+
if err := os.MkdirAll(SSH.KeyTestPath, os.ModePerm); err != nil {
142141
log.Fatal("failed to create directory %q for ssh key test: %w", SSH.KeyTestPath, err)
143142
}
144143

0 commit comments

Comments
 (0)