Skip to content

Commit

Permalink
explicitly set 644 permissions on ssh config files
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Oct 14, 2024
1 parent 99a6b5d commit 19f5d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clab/sshconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (c *CLab) addSSHConfig() error {
return err
}

f, err := os.Create(c.TopoPaths.SSHConfigPath())
f, err := os.OpenFile(c.TopoPaths.SSHConfigPath(), os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit 19f5d46

Please sign in to comment.