Skip to content

Commit

Permalink
Merge pull request #1217 from maorv/fix_overlay_linkdir_path
Browse files Browse the repository at this point in the history
overlay driver: fix incorrect path of link dir
  • Loading branch information
rhatdan committed Apr 26, 2022
2 parents 565d1f9 + c89c73f commit ca405bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/overlay/overlay.go
Expand Up @@ -1389,7 +1389,7 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
}
for err == nil {
absLowers = append(absLowers, filepath.Join(dir, nameWithSuffix("diff", diffN)))
relLowers = append(relLowers, dumbJoin(string(link), "..", nameWithSuffix("diff", diffN)))
relLowers = append(relLowers, dumbJoin(linkDir, string(link), "..", nameWithSuffix("diff", diffN)))
diffN++
st, err = os.Stat(filepath.Join(dir, nameWithSuffix("diff", diffN)))
if err == nil && !permsKnown {
Expand Down

0 comments on commit ca405bd

Please sign in to comment.