File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- // Copyright 2024 Blink Labs Software
1
+ // Copyright 2025 Blink Labs Software
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
@@ -94,7 +94,7 @@ func (s *State) saveFile(filename string, src any) error {
94
94
// Create parent directory if it doesn't exist
95
95
if _ , err := os .Stat (s .config .ConfigDir ); err != nil {
96
96
if os .IsNotExist (err ) {
97
- if err := os .MkdirAll (s .config .ConfigDir , os . ModePerm ); err != nil {
97
+ if err := os .MkdirAll (s .config .ConfigDir , 0700 ); err != nil {
98
98
return err
99
99
}
100
100
}
@@ -107,7 +107,7 @@ func (s *State) saveFile(filename string, src any) error {
107
107
if err != nil {
108
108
return err
109
109
}
110
- if err := os .WriteFile (tmpPath , yamlContent , os . ModePerm ); err != nil {
110
+ if err := os .WriteFile (tmpPath , yamlContent , 0600 ); err != nil {
111
111
return err
112
112
}
113
113
return nil
You can’t perform that action at this time.
0 commit comments