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 5332bac commit 5f5781eCopy full SHA for 5f5781e
internal/config/nixconf.go
@@ -198,7 +198,7 @@ func (n *NixConfig) readConfigLines() ([]string, error) {
198
}
199
200
func (n *NixConfig) writeConfigLines(lines []string) error {
201
- file, err := os.OpenFile(n.path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
+ file, err := os.OpenFile(n.path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
202
if err != nil {
203
return fmt.Errorf("failed to open config file: %w", err)
204
@@ -284,7 +284,7 @@ func (n *NixConfig) createBackup(backupPath string) error {
284
285
return err
286
287
- return os.WriteFile(backupPath, input, 0644)
+ return os.WriteFile(backupPath, input, 0600)
288
289
290
// expandTilde expands ~ to the user's home directory
0 commit comments