From 0e87e4230ed7b2714c5eec29fdecb7124cbea692 Mon Sep 17 00:00:00 2001 From: Stefan Kurek Date: Tue, 2 Aug 2022 12:29:34 -0400 Subject: [PATCH] Fixes tmp dir for update to have 0700 permissions --- opamp/observiq/observiq_downloadable_file_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opamp/observiq/observiq_downloadable_file_manager.go b/opamp/observiq/observiq_downloadable_file_manager.go index 76845880d..1b700d42c 100644 --- a/opamp/observiq/observiq_downloadable_file_manager.go +++ b/opamp/observiq/observiq_downloadable_file_manager.go @@ -116,7 +116,7 @@ func (m DownloadableFileManager) downloadFile(downloadURL string, outPath string // getOutputFilePath gets the output path relative to the base dir for the archive from the given URL. func getOutputFilePath(basePath, downloadURL string) (string, error) { - err := os.MkdirAll(basePath, 0600) + err := os.MkdirAll(basePath, 0700) if err != nil { return "", fmt.Errorf("problem with base url: %w", err) }