aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-29 13:30:29 +0000
committerGitHub <noreply@github.com>2021-10-29 13:30:29 +0000
commit1305902ff40989099ffe13efd32458565cbc11c6 (patch)
tree3750a1ca50331ab7a0a9c84901ce8071f7894188 /libpod
parent584049325b4d04ec512ff9c2284cdd00b01c73d0 (diff)
parentc5f0a5d788dafd94ea609b82d94cd089b30a7073 (diff)
downloadpodman-1305902ff40989099ffe13efd32458565cbc11c6.tar.gz
podman-1305902ff40989099ffe13efd32458565cbc11c6.tar.bz2
podman-1305902ff40989099ffe13efd32458565cbc11c6.zip
Merge pull request #12127 from vrothberg/bz-2014149
volumes: be more tolerant and fix infinite loop
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_path_resolution.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_path_resolution.go b/libpod/container_path_resolution.go
index bb2ef1a73..7db23b783 100644
--- a/libpod/container_path_resolution.go
+++ b/libpod/container_path_resolution.go
@@ -161,7 +161,7 @@ func isPathOnBindMount(c *Container, containerPath string) bool {
if cleanedContainerPath == filepath.Clean(m.Destination) {
return true
}
- for dest := m.Destination; dest != "/"; dest = filepath.Dir(dest) {
+ for dest := m.Destination; dest != "/" && dest != "."; dest = filepath.Dir(dest) {
if cleanedContainerPath == dest {
return true
}