From 268a68a318e04ad6107aa358bb288a6faaa3add3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 13 Sep 2017 23:05:32 +0100 Subject: [PATCH] Split fstab lines with both spaces and tabs. --- src/core/fstab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/fstab.cpp b/src/core/fstab.cpp index 465c7e7..14f0043 100644 --- a/src/core/fstab.cpp +++ b/src/core/fstab.cpp @@ -24,6 +24,7 @@ #include #include #include +#include static QString findBlkIdDevice(const QString& token, const QString& value) { @@ -86,7 +87,7 @@ FstabEntryList readFstabEntries( const QString& fstabPath ) } QString comment = line.section( QLatin1Char('#'), 1 ); - QStringList splitLine = line.section( QLatin1Char('#'), 0, 0 ).split( QLatin1Char(' ') ); + QStringList splitLine = line.section( QLatin1Char('#'), 0, 0 ).split( QRegularExpression(QStringLiteral("\\s")) ); // We now split the standard components of /etc/fstab entry: // (0) path, or UUID, or LABEL, etc,