From 5100f32ebe64d8e3cf58f8433deda869428a1ea7 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 28 Aug 2017 05:54:04 -0400 Subject: [PATCH] #780: check for isMounted(), not for where-would-it-be-mounted --- src/modules/partition/core/DeviceList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/partition/core/DeviceList.cpp b/src/modules/partition/core/DeviceList.cpp index 22d7e643f..0b89fd986 100644 --- a/src/modules/partition/core/DeviceList.cpp +++ b/src/modules/partition/core/DeviceList.cpp @@ -58,7 +58,7 @@ isMounted( Device* device ) cDebug() << "Checking for mounted partitions in" << device->deviceNode(); for ( auto it = PartitionIterator::begin( device ); it != PartitionIterator::end( device ); ++it ) { - if ( ! ( *it )->mountPoint().isEmpty() ) + if ( ! ( *it )->isMounted() ) { cDebug() << " .." << ( *it )->partitionPath() << "is mounted on" << ( *it )->mountPoint(); return true;