From 7aafeec2cb0068d7b975036fa3a9700c037a6e89 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 1 Mar 2022 16:14:45 +0100 Subject: [PATCH] [libcalamares] Fix entry-format, it was totally bogus --- src/libcalamares/partition/Mount.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcalamares/partition/Mount.cpp b/src/libcalamares/partition/Mount.cpp index a0cbf3a4a..c22ba942b 100644 --- a/src/libcalamares/partition/Mount.cpp +++ b/src/libcalamares/partition/Mount.cpp @@ -144,9 +144,9 @@ MtabInfo::fromMtabFilteredByPrefix( const QString& mountPrefix, const QString& m } QStringList parts = line.split( ' ', SplitSkipEmptyParts ); - if ( parts.length() == 3 && !parts[ 0 ].startsWith( '#' ) ) + if ( parts.length() >= 3 && !parts[ 0 ].startsWith( '#' ) ) { - // Lines have format: , so check + // Lines have format: ..., so check // the mountpoint field. Everything starts with an empty string. if ( parts[ 1 ].startsWith( mountPrefix ) ) {