summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory A. Pratt <anarchy@gentoo.org>2010-10-28 20:34:34 -0500
committerJory A. Pratt <anarchy@gentoo.org>2010-10-28 20:35:09 -0500
commit060b19e3e3afdd9af511d295ea944eb55dfec70b (patch)
tree514614aeb10d69ed9025258039f2c4d4c26cfa07
parentd8a76d1bf660aa376547f80f406240c67e938487 (diff)
downloadopenrc-060b19e3e3afdd9af511d295ea944eb55dfec70b.tar.gz
openrc-060b19e3e3afdd9af511d295ea944eb55dfec70b.tar.bz2
openrc-060b19e3e3afdd9af511d295ea944eb55dfec70b.tar.xz
correction for unmounting volumes with weird characters, thanks Brant
Gurganus <brant@gurganus.name>
-rw-r--r--sh/rc-mount.sh2
1 files changed, 2 insertions, 0 deletions
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)