bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #54994] Ignore comments in built-in configuration file


From: Jean-Tiare Le Bigot
Subject: [bug #54994] Ignore comments in built-in configuration file
Date: Fri, 9 Nov 2018 10:59:58 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0

URL:
  <https://savannah.gnu.org/bugs/?54994>

                 Summary: Ignore comments in built-in configuration file
                 Project: GNU GRUB
            Submitted by: yadutaf
            Submitted on: Fri 09 Nov 2018 03:59:56 PM UTC
                Category: Configuration
                Severity: Major
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: Git master
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

The main Grub configuration file parser supports shell-style comments starting
with a '#' however the built-in configuration file is parsed with the rescue
parser rather than the full-featured configuration parser.

For each line the rescue parser takes the first word and assumes this is a
command name. For comment lines, it tries to execute the function '#' which
fails in a harmless way but logs annoying error messages to the whichever
console is connected.

To keep the rescue parser simple, stupid while supporting simple comments, we
could just ignore lines starting with a '#', like empty lines.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 09 Nov 2018 03:59:56 PM UTC  Name:
0001-Ignore-comments-in-built-in-configuration-file.patch  Size: 1KiB   By:
yadutaf

<http://savannah.gnu.org/bugs/download.php?file_id=45392>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54994>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]