forked from qt-creator/qt-creator
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:
@@ -130,7 +130,7 @@ static QString resolveSymlinks(QString current)
|
|||||||
while (links--) {
|
while (links--) {
|
||||||
const QFileInfo info(current);
|
const QFileInfo info(current);
|
||||||
if (!info.isSymLink())
|
if (!info.isSymLink())
|
||||||
return {};
|
return current;
|
||||||
current = info.symLinkTarget();
|
current = info.symLinkTarget();
|
||||||
}
|
}
|
||||||
return current;
|
return current;
|
||||||
|
Reference in New Issue
Block a user