Docker: Fix ensureReachable

ensureReachable for a path on the same device must return true.

Change-Id: I5b6924795997758ec0ad31520fa971ecd2a9615c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-06-23 09:19:25 +02:00
parent b0d0a5bca3
commit ffa52040a4

View File

@@ -1232,6 +1232,9 @@ expected_str<FilePath> DockerDevicePrivate::localSource(const FilePath &other) c
bool DockerDevicePrivate::ensureReachable(const FilePath &other)
{
if (other.isSameDevice(q->rootPath()))
return true;
for (const QString &mount : m_data.mounts) {
const FilePath fMount = FilePath::fromString(mount);
if (other.isChildOf(fMount))