Use the same executable name in findExternal and ExecuteCommand
Even if they are symlinked, only one name was whitelisted.
This commit is contained in:
parent
ee8ee70df9
commit
b893a39223
|
@ -41,8 +41,8 @@ hfsplus::hfsplus(qint64 firstsector, qint64 lastsector, qint64 sectorsused, cons
|
|||
|
||||
void hfsplus::init()
|
||||
{
|
||||
m_Check = findExternal(QStringLiteral("fsck_hfs")) ? cmdSupportFileSystem : cmdSupportNone;
|
||||
m_Create = findExternal(QStringLiteral("newfs_hfs")) ? cmdSupportFileSystem : cmdSupportNone;
|
||||
m_Check = findExternal(QStringLiteral("fsck.hfsplus")) ? cmdSupportFileSystem : cmdSupportNone;
|
||||
m_Create = findExternal(QStringLiteral("mkfs.hfsplus")) ? cmdSupportFileSystem : cmdSupportNone;
|
||||
m_Copy = (m_Check != cmdSupportNone) ? cmdSupportCore : cmdSupportNone;
|
||||
m_Move = (m_Check != cmdSupportNone) ? cmdSupportCore : cmdSupportNone;
|
||||
m_Backup = cmdSupportCore;
|
||||
|
|
Loading…
Reference in New Issue