Skip to content

Commit

Permalink
Merge pull request #70 from inteon/bugfix
Browse files Browse the repository at this point in the history
BUGFIX: pass full path to chown
  • Loading branch information
cert-manager-prow[bot] authored Nov 21, 2024
2 parents c552f3a + 8d3c63a commit 4e16ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (f *Filesystem) WriteFiles(meta metadata.Metadata, files map[string][]byte)
// If a fsGroup is defined, Chown all files in the timestamped directory.
for filename := range files {
// Set the uid to -1 which means don't change ownership in Go.
if err := os.Chown(filepath.Join(tsDirName, filename), -1, int(*fsGroup)); err != nil {
if err := os.Chown(filepath.Join(f.dataPathForVolumeID(meta.VolumeID), tsDirName, filename), -1, int(*fsGroup)); err != nil {
return err
}
}
Expand Down

0 comments on commit 4e16ea6

Please sign in to comment.