Commit 858f8d9b authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Add a comment about WriteOnly.

parent d92ebc0b
Pipeline #140265 passed with stage
in 2 minutes and 42 seconds
......@@ -137,6 +137,7 @@ bool ExternalCommandHelper::WriteFstab(const QByteArray& fileContents)
QString fstabPath = QStringLiteral("/etc/fstab");
QFile fstabFile(fstabPath);
// WriteOnly implies O_TRUNC
auto flags = QIODevice::WriteOnly | QIODevice::Unbuffered;
if (! {
qCritical() << xi18n("Could not open file <filename>%1</filename> for writing.", fstabPath);
Supports Markdown
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