Skip to content

Commit

Permalink
GO-4786 fix permissions (#1969)
Browse files Browse the repository at this point in the history
  • Loading branch information
fat-fellow authored Dec 19, 2024
1 parent 9afac11 commit a7a465d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/application/profiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ func (s *Service) SaveLog(srcPath, destDir string) (string, error) {
return "", fmt.Errorf("create temp file: %w", err)
}

err = os.Chmod(targetFile.Name(), 0664)
if err != nil {
return "", err
}

file, err := os.Open(srcPath)
if err != nil {
return "", fmt.Errorf("failed to open source file: %w", err)
Expand Down

0 comments on commit a7a465d

Please sign in to comment.