forked from qt-creator/qt-creator
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:
committed by
André Hartmann
parent
cb9e9a1f3f
commit
6c4c5cbe1c
@@ -153,7 +153,7 @@ QDateTime GenericDirectUploadService::timestampFromStat(const DeployableFile &fi
|
|||||||
return QDateTime();
|
return QDateTime();
|
||||||
}
|
}
|
||||||
const QByteArrayList columns = output.mid(file.remoteFilePath().toUtf8().size() + 1).split(' ');
|
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);
|
emit warningMessage(warningString);
|
||||||
return QDateTime();
|
return QDateTime();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user