diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-07 05:33:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 05:33:25 -0400 |
commit | 41ac68d197b53f3c151b81e2eddbc00bcf1a117f (patch) | |
tree | 980ff63c26b7b8fffd84724bd0815a2e4755412d /libpod | |
parent | 29b13176a2f80728f5f8534e925d03f3c4ab51e3 (diff) | |
parent | d6fd5289008c595c0aa49e9f9d06632795adca82 (diff) | |
download | podman-41ac68d197b53f3c151b81e2eddbc00bcf1a117f.tar.gz podman-41ac68d197b53f3c151b81e2eddbc00bcf1a117f.tar.bz2 podman-41ac68d197b53f3c151b81e2eddbc00bcf1a117f.zip |
Merge pull request #10238 from bacher09/fix-inf-loop
Fix infinite loop in isPathOnVolume
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container_path_resolution.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_path_resolution.go b/libpod/container_path_resolution.go index d798963b1..ec7306ca1 100644 --- a/libpod/container_path_resolution.go +++ b/libpod/container_path_resolution.go @@ -128,7 +128,7 @@ func isPathOnVolume(c *Container, containerPath string) bool { if cleanedContainerPath == filepath.Clean(vol.Dest) { return true } - for dest := vol.Dest; dest != "/"; dest = filepath.Dir(dest) { + for dest := vol.Dest; dest != "/" && dest != "."; dest = filepath.Dir(dest) { if cleanedContainerPath == dest { return true } |