Bug#296724: /sbin/update-grub: a broken variable expansion in get_kernel_opt

Juha Jäykkä Juha Jäykkä , 296724@bugs.debian.org
Thu, 24 Feb 2005 12:32:53 +0200


--Boundary_(ID_+nAHH2MI5HfmtrNFulhERA)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-disposition: inline

Package: grub
Version: 0.95+cvs20040624-15
Severity: normal


Function get_kernel_opt() in /sbin/update-grub handles some shell specials
incorrectly on line 535. This affects *at least* kernel images with a plus
in their names. This is allowed by Debian policies (as far as make-kpkg can
be trusted in this) and worked in earlier versions of grub.

Please fix, patch included.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (999, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10+juhaj+v1.7
Locale: LANG=C, LC_CTYPE=fi_FI@euro (charmap=ISO-8859-15)

Versions of packages grub depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-4        Shared libraries for terminal hand

-- no debconf information


--Boundary_(ID_+nAHH2MI5HfmtrNFulhERA)
Content-type: application/octet-stream;
 name=grub-0.95_plus_in_kernel_version.patch
Content-transfer-encoding: base64
Content-disposition: attachment; filename=grub-0.95_plus_in_kernel_version.patch

KioqIHVwZGF0ZS1ncnViLm9yaWcJVGh1IEZlYiAyNCAxMDo1MzoyNCAyMDA1Ci0tLSB1cGRhdGUt
Z3J1YglUaHUgRmViIDI0IDExOjQ0OjQzIDIwMDUKKioqKioqKioqKioqKioqCioqKiA1MzMsNTM3
ICoqKioKICAJaWYgWyAtbiAiJHZlcnNpb24iIF0gOyB0aGVuCiAgCQl3aGlsZSBbIC1uICIkdmVy
c2lvbiIgXSA7IGRvCiEgCQkJY3VycmVudE9wdD0iJChldmFsICJlY2hvIFwka29wdF8kdmVyc2lv
biIpIgogIAkJCWlmIFsgLW4gIiRjdXJyZW50T3B0IiBdIDsgdGhlbgogIAkJCQlicmVhawotLS0g
NTMzLDUzNyAtLS0tCiAgCWlmIFsgLW4gIiR2ZXJzaW9uIiBdIDsgdGhlbgogIAkJd2hpbGUgWyAt
biAiJHZlcnNpb24iIF0gOyBkbwohIAkJCWN1cnJlbnRPcHQ9IiQoZXZhbCAiZWNobyBcJHtrb3B0
XyR2ZXJzaW9ufSIpIgogIAkJCWlmIFsgLW4gIiRjdXJyZW50T3B0IiBdIDsgdGhlbgogIAkJCQli
cmVhawo=

--Boundary_(ID_+nAHH2MI5HfmtrNFulhERA)--