From 24e0d7e9fb0a1d29ff01ea484b152fd4c6be4821 Mon Sep 17 00:00:00 2001 From: Shane C Date: Mon, 18 Nov 2024 17:04:50 -0500 Subject: [PATCH] fix file perms for WriteFile --- storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage.go b/storage.go index e6a903a..e072dc9 100644 --- a/storage.go +++ b/storage.go @@ -181,7 +181,7 @@ func (s *Storage) Write(name string, data []byte, opts WriteOptions) error { } return nil } else { - return os.WriteFile(filepath.Join(s.config.Path, name), data, 0640) + return os.WriteFile(filepath.Join(s.config.Path, name), data, 0600) } }