Docker: Don't try to mount empty folder

Change-Id: I90479d21dd29a291e7d391464efaf40d6a50b662
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-12-06 12:34:20 +01:00
parent 7a02b39f26
commit 0f4430ca05

View File

@@ -805,6 +805,9 @@ bool DockerDevice::handlesFile(const FilePath &filePath) const
bool DockerDevice::ensureReachable(const FilePath &other) const bool DockerDevice::ensureReachable(const FilePath &other) const
{ {
if (other.isEmpty())
return false;
if (other.isSameDevice(rootPath())) if (other.isSameDevice(rootPath()))
return true; return true;