Skip to content

Commit

Permalink
Merge pull request #3930 from splucs/fix-s3-walk-prev-dir
Browse files Browse the repository at this point in the history
Fix panic in the s3 backend walk logic
  • Loading branch information
milosgajdos committed May 29, 2023
2 parents 983358f + 035a8ec commit 0610484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/storage/driver/s3-aws/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ func (d *driver) doWalk(parentCtx context.Context, objectCount *int64, path, pre
// the most recent skip directory to avoid walking over undesirable files
prevSkipDir string
)
prevDir = prefix + path
prevDir = strings.Replace(path, d.s3Path(""), prefix, 1)

listObjectsInput := &s3.ListObjectsV2Input{
Bucket: aws.String(d.Bucket),
Expand Down

0 comments on commit 0610484

Please sign in to comment.