aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Jirkovský <l.jirkovsky@gmail.com>2012-11-07 15:05:13 (GMT)
committerTom Gundersen <teg@jklm.no>2012-11-13 13:20:20 (GMT)
commit85f147c163d3844901c6cd659f0066e7741811a5 (patch)
tree56636ca48c68eec9c7a3659e810589a7a0ad7671
parent59295c8a1afd993ce8b9c28d2eb8fedfcd8e046c (diff)
downloadinitscripts-85f147c163d3844901c6cd659f0066e7741811a5.tar.xz
Fix FS#315632013.06.1upstream
Interpret exscape sequences in the filessytem target while unmounting. Having recursive unmount would be probably better (see falconindy's comment on the bug), but IMO this workaround is good enough. [tomegun: recursive umount will almost certainly be in next util-linux, but that is still some time away, so we take this for now.] Signed-off-by: Tom Gundersen <teg@jklm.no>
-rw-r--r--functions2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions b/functions
index febcb25..16a6cd1 100644
--- a/functions
+++ b/functions
@@ -645,6 +645,8 @@ umount_all() {
findmnt -mrunRo TARGET,FSTYPE,OPTIONS / | {
while read -r target fstype options; do
+ # interpret the ascii chars, such as \x20 (space)
+ printf -v target '%b' "$target"
# match only targeted fstypes
if [[ $1 && $1 != "$fstype" ]]; then
continue