forked from qt-creator/qt-creator
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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user