summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/cdromutl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/contrib/cdromutl.cc')
-rw-r--r--apt-pkg/contrib/cdromutl.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/apt-pkg/contrib/cdromutl.cc b/apt-pkg/contrib/cdromutl.cc
index 551efa7d9..e25caf1a5 100644
--- a/apt-pkg/contrib/cdromutl.cc
+++ b/apt-pkg/contrib/cdromutl.cc
@@ -258,13 +258,9 @@ string FindMountPointForDevice(const char *devnode)
if(TokSplitString(' ', buf, out, 10))
{
fclose(f);
- // unescape \040 and return the path
- size_t pos;
+ // unescape the \0XXX chars in the path
string mount_point = out[1];
- static const char *needle = "\\040";
- while ((pos = mount_point.find(needle)) != string::npos)
- mount_point.replace(pos, strlen(needle), " ");
- return mount_point;
+ return DeEscapeString(mount_point);
}
}
}