tofu: Use stricter file permissions

This commit is contained in:
Adnan Maolood 2021-03-09 08:58:36 -05:00
parent 3da7fe7cee
commit b00794f236
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func (k *KnownHosts) WriteTo(w io.Writer) (int64, error) {
// Load loads the known hosts entries from the provided path.
func (k *KnownHosts) Load(path string) error {
if err := os.MkdirAll(filepath.Dir(path), os.ModePerm); err != nil {
if err := os.MkdirAll(filepath.Dir(path), 0700); err != nil {
return err
}