Skip to content

Commit 8d3c63a

Browse files
committed
BUGFIX: chown using the full path instead of the relative path
Signed-off-by: Tim Ramlot <[email protected]>
1 parent c552f3a commit 8d3c63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/filesystem.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (f *Filesystem) WriteFiles(meta metadata.Metadata, files map[string][]byte)
266266
// If a fsGroup is defined, Chown all files in the timestamped directory.
267267
for filename := range files {
268268
// Set the uid to -1 which means don't change ownership in Go.
269-
if err := os.Chown(filepath.Join(tsDirName, filename), -1, int(*fsGroup)); err != nil {
269+
if err := os.Chown(filepath.Join(f.dataPathForVolumeID(meta.VolumeID), tsDirName, filename), -1, int(*fsGroup)); err != nil {
270270
return err
271271
}
272272
}

0 commit comments

Comments
 (0)