From 85f147c163d3844901c6cd659f0066e7741811a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Jirkovsk=C3=BD?= Date: Wed, 7 Nov 2012 16:05:13 +0100 Subject: Fix FS#31563 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 --- functions | 2 ++ 1 file changed, 2 insertions(+) (limited to 'functions') 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 -- cgit v1.2.3