From 0c3c04d744a27bbc60eabed3635c48e357307b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Fri, 29 Jun 2018 17:06:56 +0200 Subject: [PATCH] fs: DeviceLister: Ensure proper mountpoints mrl encoding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 48017dd3f7d3fa7f1510ea8d09190debd61f36c1) Signed-off-by: Hugo Beauzée-Luyssen --- src/filesystem/unix/DeviceLister.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesystem/unix/DeviceLister.cpp b/src/filesystem/unix/DeviceLister.cpp index d7de913f8..5d8943955 100644 --- a/src/filesystem/unix/DeviceLister.cpp +++ b/src/filesystem/unix/DeviceLister.cpp @@ -258,7 +258,7 @@ std::vector> DeviceLister::devices() } } auto removable = isRemovable( deviceName, mountpoint ); - res.emplace_back( std::make_tuple( uuid, "file://" + mountpoint, removable ) ); + res.emplace_back( std::make_tuple( uuid, utils::file::toMrl( mountpoint ), removable ) ); } } catch(std::runtime_error& ex) -- GitLab