URL:
  <http://savannah.gnu.org/bugs/?38331>

                 Summary: Grub2 class names are not escaped properly
                 Project: GNU GRUB
            Submitted by: thardeck
            Submitted on: Thu 14 Feb 2013 02:33:35 PM GMT
                Category: Configuration
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: other
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

Grub 2.0 does not escape the ${GRUB_DISTRIBUTOR} variable properly for the
class parameter.
If the variable consists special characters like apostrophes the grub.cfg
can't be parsed because of syntax errors on the next boot.

For example:
 menuentry 'Tim'\''s JeOS, with Linux 3.7.6-1.2-default (recovery mode)'
--class tim's --class gnu-linux --class gnu[....]

The attached patch fixes the issue by replacing all special characters with
"-".

The downstream bug report is:
https://bugzilla.novell.com/show_bug.cgi?id=788322



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 14 Feb 2013 02:33:35 PM GMT  Name:
grub2-fix-unquoted-string-in-class.patch  Size: 3kB   By: thardeck
Patch against Grub 2.0
<http://savannah.gnu.org/bugs/download.php?file_id=27462>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38331>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to