From 060b19e3e3afdd9af511d295ea944eb55dfec70b Mon Sep 17 00:00:00 2001 From: "Jory A. Pratt" Date: Thu, 28 Oct 2010 20:34:34 -0500 Subject: correction for unmounting volumes with weird characters, thanks Brant Gurganus --- sh/rc-mount.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sh/rc-mount.sh b/sh/rc-mount.sh index 940e5e5..da2e20e 100644 --- a/sh/rc-mount.sh +++ b/sh/rc-mount.sh @@ -26,6 +26,8 @@ do_unmount() # Unmounting a shared mount can unmount other mounts, so # we need to check the mount is still valid mountinfo --quiet "$mnt" || continue + # Ensure we interpret all characters properly. + mnt=$(printf "$mnt") case "$cmd" in umount) -- cgit v1.2.3