forked from qt-creator/qt-creator
Utils: Remove status= when using dd
Some versions of dd don't support the status= option. (e.g. the dd version in boot2qt) Change-Id: I22aa6571b223b7707e962bd2df9abdd11b438d69 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -953,7 +953,7 @@ expected_str<QByteArray> UnixDeviceFileAccess::fileContents(const FilePath &file
|
|||||||
qint64 limit,
|
qint64 limit,
|
||||||
qint64 offset) const
|
qint64 offset) const
|
||||||
{
|
{
|
||||||
QStringList args = {"if=" + filePath.path(), "status=none"};
|
QStringList args = {"if=" + filePath.path()};
|
||||||
if (limit > 0 || offset > 0) {
|
if (limit > 0 || offset > 0) {
|
||||||
const qint64 gcd = std::gcd(limit, offset);
|
const qint64 gcd = std::gcd(limit, offset);
|
||||||
args += QString("bs=%1").arg(gcd);
|
args += QString("bs=%1").arg(gcd);
|
||||||
|
Reference in New Issue
Block a user