sdktool: Fix writing files

Fix an error when copying the file operations to sdktool.

resolveSymlinks was (basically) always returning an empty string.
Instead it should return the first file path that is not a symlink.

Amends bb4d9c92e7

Change-Id: Id6bfcc3332c14f074ab635e11ca0536b5326dbb1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2023-07-20 10:31:07 +02:00
parent cd971160c3
commit 3da1adc442

View File

@@ -130,7 +130,7 @@ static QString resolveSymlinks(QString current)
while (links--) {
const QFileInfo info(current);
if (!info.isSymLink())
return {};
return current;
current = info.symLinkTarget();
}
return current;