diff options
| author | Adnan Maolood <[email protected]> | 2021-03-09 08:58:36 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-03-09 08:58:36 -0500 |
| commit | b00794f2363d507fa5e95b1d91b9442f0914cb93 (patch) | |
| tree | e38c11fae46be22738d1f899619a3fab2cd256ea /tofu | |
| parent | tofu: Create path if not exists (diff) | |
| download | go-gemini-b00794f2363d507fa5e95b1d91b9442f0914cb93.tar.xz go-gemini-b00794f2363d507fa5e95b1d91b9442f0914cb93.zip | |
tofu: Use stricter file permissions
Diffstat (limited to 'tofu')
| -rw-r--r-- | tofu/tofu.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tofu/tofu.go b/tofu/tofu.go index e2fcebb..556e46e 100644 --- a/tofu/tofu.go +++ b/tofu/tofu.go @@ -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 } |