]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub.d/00_header.in: Add some more quoting (of
authorColin Watson <cjwatson@ubuntu.com>
Mon, 7 Jun 2010 13:22:40 +0000 (14:22 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Mon, 7 Jun 2010 13:22:40 +0000 (14:22 +0100)
"${prev_saved_entry}" and "${boot_once}") needed to make savedefault
work again.
Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).

ChangeLog
util/grub.d/00_header.in

index 07c262dc273101f1b76a6eccbe2858c100c1f3a0..5568cbd3a90400c13a6130834d7ad98f636dc87d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
+
+       * util/grub.d/00_header.in: Add some more quoting (of
+       "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
+       work again.
+       Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
+
 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
 
        * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
index 199a1d7af687cce49215b3da9e8a63b190cba211..791840a604c3ebefe257220dcc540369df62b77e 100644 (file)
@@ -61,7 +61,7 @@ set default="${GRUB_DEFAULT}"
 EOF
 fi
 cat <<EOF
-if [ \${prev_saved_entry} ]; then
+if [ "\${prev_saved_entry}" ]; then
   set saved_entry="\${prev_saved_entry}"
   save_env saved_entry
   set prev_saved_entry=
@@ -70,7 +70,7 @@ if [ \${prev_saved_entry} ]; then
 fi
 
 function savedefault {
-  if [ -z \${boot_once} ]; then
+  if [ -z "\${boot_once}" ]; then
     saved_entry="\${chosen}"
     save_env saved_entry
   fi