mirror of
https://github.com/distribution/distribution.git
synced 2025-09-17 07:40:38 +00:00
Fix panic in the s3 backend walk logic
Signed-off-by: Lucas França de Oliveira <lucasfdo@palantir.com>
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user