Commit 1502494e authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Be a bit more strict in root helper when checking path to /etc/fstab.

parent e2f097fc
Pipeline #133399 passed with stage
in 1 minute and 6 seconds
......@@ -136,7 +136,7 @@ bool ExternalCommandHelper::CreateFile(const QString &filePath, const QByteArray
return false;
// Do not allow using this helper for writing to arbitrary location
if ( !filePath.contains(QStringLiteral("/etc/fstab")) )
if ( filePath != QStringLiteral("/etc/fstab") )
return false;
QFile device(filePath);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment