From: Carl Hetherington Date: Sat, 2 May 2020 23:13:26 +0000 (+0200) Subject: Fix unmount of drives with spaces in their names (#1744). X-Git-Tag: v2.15.71~2 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=d0500842e988596fc329d1a6353f6ac6153f3a8d Fix unmount of drives with spaces in their names (#1744). --- diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc index 36683a0cd..a60f7af63 100644 --- a/src/lib/cross_linux.cc +++ b/src/lib/cross_linux.cc @@ -274,6 +274,7 @@ get_mounts (string prefix) vector bits; boost::algorithm::split (bits, line, boost::is_any_of(" ")); if (bits.size() > 1 && boost::algorithm::starts_with(bits[0], prefix)) { + boost::algorithm::replace_all (bits[1], "\\040", " "); mounts.push_back(make_pair(bits[0], bits[1])); LOG_DISK("Found mounted device %1 from prefix %2", bits[0], prefix); }