Add an extra backslash to the code in parse_proc_mdstat to remove [...], so that...
authorColin Watson <cjwatson@debian.org>
Tue, 21 May 2013 21:42:35 +0000 (22:42 +0100)
committerColin Watson <cjwatson@debian.org>
Tue, 21 May 2013 21:42:35 +0000 (22:42 +0100)
debian/changelog
os-prober

index ca0e16a..a420cbb 100644 (file)
@@ -1,3 +1,10 @@
+os-prober (1.61) UNRELEASED; urgency=low
+
+  * Add an extra backslash to the code in parse_proc_mdstat to remove [...],
+    so that it works properly in dash (thanks, John Ryan; LP: #905607).
+
+ -- Colin Watson <cjwatson@debian.org>  Tue, 21 May 2013 22:37:14 +0100
+
 os-prober (1.60) unstable; urgency=low
 
   * os-probes/mounted/x86/05efi: Handle the case where we used grub-mount to
index 2a08736..d67f0b3 100755 (executable)
--- a/os-prober
+++ b/os-prober
@@ -81,7 +81,7 @@ parse_proc_mdstat () {
        fi
        while read line; do
                for word in $line; do
-                       dev="${word%%[*}"
+                       dev="${word%%\[*}"
                        # TODO: factor this out to something in di-utils if
                        # it's needed elsewhere
                        if [ -d /sys/block ] && type udevinfo >/dev/null 2>&1; then