mirror of
https://github.com/containers/podman.git
synced 2026-07-10 23:35:04 -04:00
The function `IsPathAvailableOnMachine` was returning the wrong target path (the path of the file mounted inside the machine) when the provider was HyperV and the mounted drive wasn't `C:`. For example here: https://api.cirrus-ci.com/v1/task/5212355623124992/logs/main.log The host path `Z:\\podman_test3139230807\\...\\host-ca-certs.pem` was converted as guest path `/mnt/c/podman_test3139230807/.../host-ca-certs.pem` although `Z:\` was mounted to `/mnt/z` rather than `/mnt/c`. We have fixed this behavior and added a few unit tests. Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>