From aa5daf03786a3eb2a8ca783868f2d2ddd869e1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sat, 24 Sep 2016 17:10:16 +0100 Subject: [PATCH] Use symlinks to hfsplus (diskdev_cmds) commands. Some distributions rename those commands to mkfs.hfsplus and fsck.hfsplus. BUG: 369288 --- src/fs/hfsplus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/hfsplus.cpp b/src/fs/hfsplus.cpp index 29cc171..0b2bd35 100644 --- a/src/fs/hfsplus.cpp +++ b/src/fs/hfsplus.cpp @@ -83,13 +83,13 @@ qint64 hfsplus::maxLabelLength() const bool hfsplus::check(Report& report, const QString& deviceNode) const { - ExternalCommand cmd(report, QStringLiteral("fsck_hfs"), { deviceNode }); + ExternalCommand cmd(report, QStringLiteral("fsck.hfsplus"), { deviceNode }); return cmd.run(-1) && cmd.exitCode() == 0; } bool hfsplus::create(Report& report, const QString& deviceNode) { - ExternalCommand cmd(report, QStringLiteral("newfs_hfs"), { deviceNode }); + ExternalCommand cmd(report, QStringLiteral("mkfs.hfsplus"), { deviceNode }); return cmd.run(-1) && cmd.exitCode() == 0; }