chunked: fix the path used for layers dedup

`source` is the path to the layer that already contains the file that
is looked up.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2021-07-01 00:02:04 +02:00
parent 57369d21a0
commit bfa0c220a5
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ func findFileInOtherLayers(file zstdFileMetadata, root string, dirfd int, layers
continue
}
srcDirfd, err := unix.Open(root, unix.O_RDONLY, 0)
srcDirfd, err := unix.Open(source, unix.O_RDONLY, 0)
if err != nil {
continue
}