bugGNU GRUB - Bugs: bug #54994, Ignore comments in built-in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #54994: Ignore comments in built-in configuration file

Submitter:  Jean-Tiare Le Bigot <yadutaf>
Submitted:  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: 
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Fri 05 Jul 2019 10:19:39 AM UTC, comment #1: 

Do you have any news ? Would this patch be acceptable ?

Jean-Tiare Le Bigot <yadutaf>
Fri 09 Nov 2018 03:59:56 PM UTC, original submission:  

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.

Jean-Tiare Le Bigot <yadutaf>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by yadutaf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-11-09 yadutaf Attached File- Added 0001-Ignore-comments-in-built-in-configuration-file.patch, #45392

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code