Skip to content

Commit

Permalink
Fixes tmp dir for update to have 0700 permissions (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKurek authored Aug 3, 2022
1 parent cfe54a0 commit 581ba41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opamp/observiq/observiq_downloadable_file_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 581ba41

Please sign in to comment.