RemoteLinux: Fix off-by-one error in parsing stat output

Change-Id: I9a3564fc724d5c19d9c0a34298a92b31833096ee
Fixes: QTCREATORBUG-22041
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Christian Kandeler
2019-04-17 19:12:54 +02:00
committed by André Hartmann
parent cb9e9a1f3f
commit 6c4c5cbe1c

View File

@@ -153,7 +153,7 @@ QDateTime GenericDirectUploadService::timestampFromStat(const DeployableFile &fi
return QDateTime();
}
const QByteArrayList columns = output.mid(file.remoteFilePath().toUtf8().size() + 1).split(' ');
if (columns.size() < 15) { // Normal Linux stat: 16 columns, busybox stat: 15 columns
if (columns.size() < 14) { // Normal Linux stat: 16 columns in total, busybox stat: 15 columns
emit warningMessage(warningString);
return QDateTime();
}