summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-03 01:13:26 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-03 01:13:26 +0200
commitd0500842e988596fc329d1a6353f6ac6153f3a8d (patch)
tree5c3c75d7c93d2b8161410b6feee6a64dc3113867
parentfbac45d8e85b9a89c672d8e2f7cef8274b93e164 (diff)
Fix unmount of drives with spaces in their names (#1744).
-rw-r--r--src/lib/cross_linux.cc1
1 files changed, 1 insertions, 0 deletions
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<string> 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);
}