Merge pull request #2347 from versity/ben/multipart-perms

fix: use dir permissions option for temporary directories
This commit is contained in:
Ben McClelland
2026-09-03 07:55:28 -07:00
committed by GitHub
+1 -1
View File
@@ -1744,7 +1744,7 @@ func (p *Posix) CreateMultipartUpload(ctx context.Context, mpu s3response.Create
tmppath := filepath.Join(bucket, objdir)
// the unique upload id is a directory for all of the parts
// associated with this specific multipart upload
err = os.MkdirAll(filepath.Join(tmppath, uploadID), 0755)
err = os.MkdirAll(filepath.Join(tmppath, uploadID), p.newDirPerm)
if err != nil {
return s3response.InitiateMultipartUploadResult{}, fmt.Errorf("create upload temp dir: %w", err)
}